Skip to content

Commit 10744b7

Browse files
committed
Rename method to clarify retrieval of customers with orders
1 parent ef4f831 commit 10744b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NorthwindCRUD/Controllers/CustomersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public ActionResult<CustomerDto[]> GetAllCustomersWithOrders()
5353
{
5454
try
5555
{
56-
var customers = this.customerService.GetAllCustomerOrders();
56+
var customers = this.customerService.GetAllCustomersWithOrders();
5757
return Ok(this.mapper.Map<CustomerDb[], CustomerDto[]>(customers));
5858
}
5959
catch (Exception error)

NorthwindCRUD/Services/CustomerService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public IQueryable<CustomerDb> GetAllAsQueryable()
3232
.FirstOrDefault(c => c.CustomerId == id);
3333
}
3434

35-
public CustomerDb[] GetAllCustomerOrders()
35+
public CustomerDb[] GetAllCustomersWithOrders()
3636
{
3737
return this.dataContext.Customers
3838
.Include(c => c.Orders)

0 commit comments

Comments
 (0)