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