* 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

@@ -11,8 +11,7 @@ public class TaskSchedulerService(OrdersManagementDbContext context, IMapper map
public async Task<IEnumerable<TaskSchedulerDto>> GetTaskSchedulers()
{
List<TaskSchedulerDto> taskSchedulers =
(await Task.FromResult(OrdersManagementQueries.GetSchedulers(context))).ToList();
await context.TaskSchedulers.Select(x => mapper.Map<TaskSchedulerDto>(x)).ToListAsync();
return taskSchedulers;
}