public ActionResult Edit(int?Id) { if (Id != null) { var selectedStudent = _StudentBLL.GetById(Id.Value); return(View(selectedStudent)); } else { var newStd = new Student(); return(View(newStd)); } }
public ActionResult Edit(int?Id) { if (Id != null) { var selectedStudent = _StudentBLL.GetById(Id.Value); return(View(selectedStudent)); } else { var newStd = new Student(); return(View(newStd)); } }