Example #1
0
        public IActionResult Order_Delete(string id = "")
        {
            int quantity           = productsFactory.Extract_DeleteQty(id);
            int productId_Increase = productsFactory.Orderprofile(id);

            productsFactory.DeleteOrder(id, quantity, productId_Increase);
            ViewBag.User_one = ecommFactory.CurrentUser((int)HttpContext.Session.GetInt32("current_id"));
            return(RedirectToAction("Orders"));
        }