public IActionResult Delete(int?id) { if (id != null) { teacherService.RemovTeacher((int)id); return(RedirectToAction(nameof(Index))); } return(Content("")); }