* Changed views to have them in the same layout

* Added Authorization
This commit is contained in:
2025-02-28 13:33:01 +01:00
parent aedb5810c2
commit b8fbb789ad
35 changed files with 1605 additions and 1306 deletions

View File

@@ -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)
{