Exemplo n.º 1
0
 public async Task <HttpResponseMessage> GetCalendarByMonthAndDelegation(DateDelegationApi dateDelegation)
 {
     return(await ValidateAndHandleOperationExecutionAsync(async() =>
     {
         var res =
             await
             _calendarDomainService.GetCalendarByMonthAndDelegation(dateDelegation.DelegationId,
                                                                    dateDelegation.Date);
         return Request.CreateResponse(HttpStatusCode.OK, res);
     }));
 }