示例#1
0
        //
        // GET: /Student/Delete/5

        public ActionResult Delete(int id)
        {
            Student student = StuBO.GetStudentByID(id);

            StuBO.Delete(student);
            return(RedirectToAction("Index"));
        }
 public ActionResult Delete(Student model)
 {
     try
     {
         StudentBusiness.Delete(model);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }