Beispiel #1
0
 public IHttpActionResult Delete(int id)
 {
     try
     {
         travelService.DeleteComment(id);
         return(Ok());
     }
     catch (ValidationException ex)
     {
         return(Content(HttpStatusCode.BadRequest, ex.Message));
     }
 }