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