We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef4f831 commit 10744b7Copy full SHA for 10744b7
NorthwindCRUD/Controllers/CustomersController.cs
@@ -53,7 +53,7 @@ public ActionResult<CustomerDto[]> GetAllCustomersWithOrders()
53
{
54
try
55
56
- var customers = this.customerService.GetAllCustomerOrders();
+ var customers = this.customerService.GetAllCustomersWithOrders();
57
return Ok(this.mapper.Map<CustomerDb[], CustomerDto[]>(customers));
58
}
59
catch (Exception error)
NorthwindCRUD/Services/CustomerService.cs
@@ -32,7 +32,7 @@ public IQueryable<CustomerDb> GetAllAsQueryable()
32
.FirstOrDefault(c => c.CustomerId == id);
33
34
35
- public CustomerDb[] GetAllCustomerOrders()
+ public CustomerDb[] GetAllCustomersWithOrders()
36
37
return this.dataContext.Customers
38
.Include(c => c.Orders)
0 commit comments