Пример #1
0
        public ActionResult DeleteOrder(string Id)
        {
            var i           = Id;
            int returnValue = _orderProvider.DeleteOrder(i);
            var result      = new DeleteMassage();

            if (returnValue == 0)
            {
                result.IsSuccess    = true;
                result.ErrorMessage = "Delete success!";
            }

            else
            {
                result.IsSuccess    = false;
                result.ErrorMessage = "The current order has been deleted!";
            }
            //else
            //{
            //result.IsSuccess = false;
            //result.ErrorMessage = "Network busy, please try again later";
            //}
            return(Json(result));
        }