コード例 #1
0
 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"));
 }
コード例 #2
0
        /// <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));
        }