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