예제 #1
0
 public ActionResult DisplayAddProductToBasket(int productId, string content, string buttonContent)
 {
     ProductSummaryOperationStatus operationStatus = _ecommerceService.GetProductSummary(productId);
     var viewProduct = new ProductSummaryViewModel();
     viewProduct.InjectFrom(operationStatus.Product);
     viewProduct.OrderPage = operationStatus.OrderPage;
     viewProduct.Content = content;
     viewProduct.ButtonContent = buttonContent;
     return PartialView("DisplayAddProductToBasket", viewProduct);
 }
예제 #2
0
 public ActionResult DisplayAddFlexibleDonationToBasket(int productId)
 {
     ProductSummaryOperationStatus operationStatus = _ecommerceService.GetProductSummary(productId);
     var viewProduct = new ProductSummaryViewModel();
     viewProduct.InjectFrom(operationStatus.Product);
     viewProduct.OrderPage = operationStatus.OrderPage;
     return PartialView("DisplayAddFlexibleDonationToBasket", viewProduct);
 }