public IActionResult DeleteCatalogueGrade(int schoolId, int catalogueId, int gradeId) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } Grade grade = _schoolRepository.GetCatalogueGrade(gradeId, schoolId, catalogueId); if (grade == null) { return(NotFound()); } _schoolRepository.DeleteCatalogueGrade(grade, schoolId, catalogueId); return(NoContent()); }