Exemple #1
0
 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));
     }
 }