public async Task <ActionResult> EditStudentProfile(int id, Profile profile) { try { await _schoolService.EditStudentProfile(id, profile); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public async Task <ActionResult> EditStudentProfile(int id, Profile profile) { try { await _schoolService.EditStudentProfile(id, profile); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }