Exemplo n.º 1
0
        public ActionResult DeleteAutoOrder(int id)
        {
            try
            {
                var customerID = Identity.Customer.CustomerID;

                Exigo.DeleteCustomerAutoOrder(customerID, id);

                return(RedirectToAction("AutoOrderList", new { success = "1" }));
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
                return(RedirectToAction("AutoOrderList", new { success = "0" }));
            }
        }
        public JsonNetResult DeleteAutoOrder(int autoOrderID)
        {
            try
            {
                var customerID = Identity.Customer.CustomerID;

                Exigo.DeleteCustomerAutoOrder(customerID, autoOrderID);

                return(new JsonNetResult(new
                {
                    success = true
                }));
            }
            catch (Exception ex)
            {
                return(new JsonNetResult(new
                {
                    success = false,
                    message = ex.Message
                }));
            }
        }