* Changed views to have them in the same layout
* Added Authorization
This commit is contained in:
@@ -5,7 +5,7 @@ namespace OrdersManagement.Services;
|
||||
|
||||
public class CustomerOrderService(
|
||||
IHttpClientFactory httpClientFactory,
|
||||
AuthenticationStateProvider authenticationStateProvider)
|
||||
CustomAuthenticationStateProvider authenticationStateProvider)
|
||||
: ServiceBase<CustomerOrderDto>(httpClientFactory, authenticationStateProvider)
|
||||
{
|
||||
public async Task<IEnumerable<CustomerOrderDto>?> GetCustomerOrdersAsync()
|
||||
@@ -25,7 +25,7 @@ public class CustomerOrderService(
|
||||
{
|
||||
try
|
||||
{
|
||||
return await GetByIdAsync($"api/CustomerOrders/by-order-number/?customerOrderNumber={customerOrderNumber}");
|
||||
return await GetEntityAsync($"api/CustomerOrders/by-order-number/?customerOrderNumber={customerOrderNumber}");
|
||||
}
|
||||
catch (HttpRequestException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user