public IHttpActionResult DeleteGrade(int id) { if (gradesService.ExistsID(id) == false) { return(NotFound()); } return(Ok(gradesService.DeleteByID(id))); }