Exemple #1
0
        public ActionResult DeleteAutoOrder(int id)
        {
            try
            {
                var customerID = Identity.Customer.CustomerID;

                ExigoDAL.DeleteCustomerAutoOrder(customerID, id);

                return(RedirectToAction("AutoOrderList", new { success = "1" }));
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
                return(RedirectToAction("AutoOrderList", new { success = "0" }));
            }
        }