Beispiel #1
0
 public IHttpActionResult GetWaitingList(int id)
 {
     try
     {
         return(Ok(_service.GetWaitinglist(id)));
     }
     catch (NotFoundException)
     {
         return(StatusCode(HttpStatusCode.NotFound));
     }
     catch (PreconditionFailedException)
     {
         return(StatusCode(HttpStatusCode.PreconditionFailed));
     }
     catch (DbException)
     {
         return(InternalServerError());
     }
 }
Beispiel #2
0
 public IHttpActionResult GetWaitinglist(int id)
 {
     return(Ok(_service.GetWaitinglist(id)));
 }