Beispiel #1
0
 public IHttpActionResult DeleteCourseByID(int id)
 {
     try
     {
         _service.DeleteCourseByID(id);
         return(StatusCode(HttpStatusCode.NoContent));
     }
     catch (AppObjectNotFoundException)
     {
         return(NotFound());
     }
 }