* Changed views to have them in the same layout
* Added Authorization
This commit is contained in:
@@ -7,7 +7,7 @@ namespace OrdersManagement.Services;
|
||||
|
||||
public class ScheduleOrderService(
|
||||
IHttpClientFactory httpClientFactory,
|
||||
AuthenticationStateProvider authenticationStateProvider)
|
||||
CustomAuthenticationStateProvider authenticationStateProvider)
|
||||
: ServiceBase<ScheduleOrderDto>(httpClientFactory, authenticationStateProvider)
|
||||
{
|
||||
public async Task<IEnumerable<ScheduleOrderDto>?> GetScheduleOrdersAsync()
|
||||
@@ -27,7 +27,7 @@ public class ScheduleOrderService(
|
||||
{
|
||||
try
|
||||
{
|
||||
return await GetByIdAsync($"api/ScheduleOrders/{scheduleOrderId}");
|
||||
return await GetEntityAsync($"api/ScheduleOrders/{scheduleOrderId}");
|
||||
}
|
||||
catch (HttpRequestException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user