Exemple #1
0
 public async Task <HttpResponseMessage> SaveSchedule(List <Schedule> schedules)
 {
     return(await ValidateAndHandleOperationExecutionAsync(async() =>
     {
         var result = 0;
         foreach (var sche in schedules)
         {
             result = await _calendarDomainService.SaveSchedule(sche);
         }
         return Request.CreateResponse(HttpStatusCode.OK, result);
     }));
 }