Пример #1
0
 public RedirectToRouteResult ClearCart()
 {
     var service = new CartService();
     service.ClearCart();
     return RedirectToAction("Index");
 }
Пример #2
0
 public JsonResult AddToCart(int productId)
 {
     var service = new CartService();
     return Json(service.AddToCart(productId));
 }
Пример #3
0
 public ActionResult CheckCart()
 {
     CartService service = new CartService();
     return View(service.GetCart());
 }
Пример #4
0
 public void SetUp()
 {
     _cartService = new CartService();
 }