Пример #1
0
 public async Task <IActionResult> DeleteConfirmed(int id)
 {
     _majorRepository.DeleteMajorById(id);
     _majorRepository.Save();
     return(RedirectToAction(nameof(Index)));
 }