public async Task <IActionResult> DeleteConfirmed(int id) { _majorRepository.DeleteMajorById(id); _majorRepository.Save(); return(RedirectToAction(nameof(Index))); }