...
This commit is contained in:
@@ -54,6 +54,23 @@ namespace Back.Services
|
||||
})
|
||||
.Paging(itemSerch.PageIndex, itemSerch.PageSize);
|
||||
}
|
||||
public async Task<List<CODIdName<int>>?> GetCODs(int CompanyID)
|
||||
{
|
||||
|
||||
#region AdvancedSearch
|
||||
var invok = _CODRepo
|
||||
.Get(w => w.CompanyID == CompanyID && !w.IsDeleted);
|
||||
|
||||
#endregion
|
||||
//-----------------------
|
||||
return await invok.Select(s => new CODIdName<int>()
|
||||
{
|
||||
ID = s.ID,
|
||||
Title = s.Title,
|
||||
Tax=s.TaxRate
|
||||
})
|
||||
.ToListAsync();
|
||||
}
|
||||
public async Task<List<IdName<int>>> GetUnits()
|
||||
{
|
||||
return await _UnitRepo.GetAll().Select(s => new IdName<int> { ID = s.ID, Title = s.Title }).ToListAsync();
|
||||
|
Reference in New Issue
Block a user