/* DELETE CUSTOMER */ public ActionResult DeleteCustomer(int Id) { if (Id != 0) { CustomerAction.Delete_Customer(Id); RecordAction.Create_Record(CustomerAction.Find_Customer((int)Session["id"]).email, CustomerAction.Find_Customer((int)Session["id"]).email + " lock account " + CustomerAction.Find_Customer(Id).email, DateTime.Now.Date); return(Redirect("~/Customer/Index/")); } return(Redirect("~/Customer/Index/")); }