Changes in Views and mappings
This commit is contained in:
@@ -13,8 +13,7 @@ namespace SytelineSaAppEfDataModel.Services
|
||||
{
|
||||
public async Task<IEnumerable<CustomerOrderDto>> GetAll()
|
||||
{
|
||||
return await context.CustomerOrders.Select(x => mapper.Map<CustomerOrderDto>(x))
|
||||
.OrderByDescending(x => x.CreateDate).ToListAsync();
|
||||
return await context.CustomerOrders.Select(x => mapper.Map<CustomerOrderDto>(x)).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<CustomerOrderDto?> GetByOrderNumber(string orderNumber)
|
||||
|
||||
Reference in New Issue
Block a user