public IActionResult Details(int productID)
        {
            ProductDetailViewModel p = new ProductDetailViewModel();
            var product = _iProductUI.GetProductDetailsByProductID(productID);

            p.ProductID        = product.ProductID;
            p.CategoryID       = product.CategoryID;
            p.CategoryName     = product.Category.CategoryName;
            p.DateCreate       = product.DateCreate;
            p.ImageUrl         = product.ImageUrl;
            p.InStock          = product.InStock;
            p.IsPrefered       = product.IsPrefered;
            p.LongDescription  = product.LongDescription;
            p.Name             = product.Name;
            p.NumberOfOrders   = product.NumberOfOrders;
            p.Price            = product.Price;
            p.ShortDescription = product.ShortDescription;
            return(View(p));
        }
 public RedirectToActionResult RemovefromShoppingCart(int productId)
 {
     _IShoppingCartUI.RemovedFromCart(_IProductUI.GetProductDetailsByProductID(productId));
     return(RedirectToAction("Index"));
 }