Exemplo n.º 1
0
 public IHttpActionResult RemoveCourse(int id)
 {
     try
     {
         _service.RemoveCourse(id);
         return(StatusCode(HttpStatusCode.NoContent));
     }
     catch (NotFoundException)
     {
         return(NotFound());
     }
     catch (DbException)
     {
         return(InternalServerError());
     }
 }