예제 #1
0
 public ActionResult Delete(int id)
 {
     try
     {
         DAL.DAL dal = new DAL.DAL();
         dal.DeleteUser(id);
         Session["message"]       = "User is successfully deleted";
         Session["requestStatus"] = "Success";
         return(RedirectToAction("Index"));
     }
     catch
     {
         Session["message"]       = "Unable to perform this request";
         Session["requestStatus"] = "Error";
         return(RedirectToAction("Index"));
     }
 }