public IHttpActionResult PutGrade(int id, Grade grade) { if (gradesService.ExistsID(id) == false) { return(NotFound()); } return(Ok(gradesService.PutGrade(id, grade))); }