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