public IActionResult Delete(int id) { var model = Svc.InstructorRoles.FindById(id); if (model == null) { return(NotFound()); } Svc.DeleteInstructorRole(model); Svc.Commit(); return(RedirectToAction("Index")); }