Exemple #1
0
        public ActionResult Delete(int StudentId)
        {
            StudentDetails studentDetails = new StudentDetails();

            studentDetails.Id = StudentId;

            StudentBusinessLayer studentBusinessLayer = new StudentBusinessLayer();

            studentBusinessLayer.DeleteStudent(studentDetails);

            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult DeleteConfirmed(int?id)
 {
     stuBL.DeleteStudent(id.Value);
     return(RedirectToAction("Index"));
 }