public ActionResult IncreaseProductCount(int id) { //int userID = userService.Get(CurrentUserLoginName).ID; //orderService.ChangeCountInShoppingCard(productService.GetDetails(id), userID, isIncrease: true); ambrella.IncreaseProductCount(id); return(RedirectToAction("Index", "ShoppingCard")); }
/// <summary> /// CONTROLLER: StoreController /// </summary> // api/WebAPI/GetIncreaseProductCount?id=5 public bool PostIncreaseProductCount(int id) { //int userID = userService.Get(CurrentUserLoginName).ID; //return orderService.ChangeCountInShoppingCard(productService.GetDetails(id), userID, isIncrease: true); return(ambrella.IncreaseProductCount(id)); }