This commit is contained in:
2022-07-04 00:12:42 +00:00
parent 5f5f5bb2e4
commit fb358e4533
7 changed files with 75 additions and 18 deletions

View File

@@ -201,7 +201,7 @@ namespace AyaNova.Biz
//
internal async Task<List<NameIdActiveChargeCostItem>> GetNameIdActiveChargeCostItemsAsync()
{
return await ct.TravelRate.AsNoTracking().Select(x => new NameIdActiveChargeCostItem { Name = x.Name, Id = x.Id, Active = x.Active, Cost = x.Cost, Charge = x.Charge }).OrderBy(x => x.Name).ToListAsync();
return await ct.TravelRate.AsNoTracking().OrderBy(x => x.Name).Select(x => new NameIdActiveChargeCostItem { Name = x.Name, Id = x.Id, Active = x.Active, Cost = x.Cost, Charge = x.Charge }).ToListAsync();
}
////////////////////////////////////////////////////////////////////////////////////////////////