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