public ActionResult Edit(int id, AcadamicMasterModel model) { try { // TODO: Add update logic here var studentId = UserProfileMasterBAL.GetStudentProfileData(User.Identity.Name).StudentId; AcademicMasterBAL.UpdateAcademic(model, studentId.ToString(), id); return(RedirectToAction("Index")); } catch { return(View()); } }
// GET: Academic public ActionResult Index() { var model = AcademicMasterBAL.AcadamicList(User.Identity.Name); return(View(model)); }