public async Task <HttpResponseMessage> GetAppointmentsByRequestIdNotAttended(Guid requestid)
 {
     return(await ValidateAndHandleOperationExecutionAsync(async() =>
     {
         var result = await _calendarDomainService.GetAppointmentsByRequestId(requestid);
         result = result.Where(r => r.Date <= DateTime.Now).ToList();
         return Request.CreateResponse(HttpStatusCode.OK, result);
     }));
 }
Пример #2
0
        public async Task <HttpResponseMessage> GetAppointmentsByRequestId(Guid requestId)
        {
            return(await ValidateAndHandleOperationExecutionAsync(async() =>
            {
                var result = await _calendarDomainService.GetAppointmentsByRequestId(requestId);

                return Request.CreateResponse(HttpStatusCode.OK, result);
            }));
        }