* Changed views to have them in the same layout
* Added Authorization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user