Exemplo n.º 1
0
 public async Task <HttpResponseMessage> GetSheduleList(int?RequestTypeId, int delegationId)
 {
     return(await HandleOperationExecutionAsync(async() =>
     {
         var result = new CalendarListDTO
         {
             Schedules = await _calendarDomainService.ObtenerHorariosAsync(RequestTypeId, delegationId),
             NonLaborableDays =
                 await _calendarDomainService.ObtenerDiasNoLaborablesAsync(RequestTypeId, delegationId),
             SpecialSchedules =
                 await _calendarDomainService.ObtenerDiasEspecialesAsync(RequestTypeId, delegationId)
         };
         return Request.CreateResponse(HttpStatusCode.OK, result);
     }));
 }