コード例 #1
0
 public ActionResult RemoveProduct(int id)
 {
     //int userID = userService.Get(CurrentUserLoginName).ID;
     //orderService.RemoveProductFromShoppingCard(userID, productID: id);
     ambrella.RemoveProduct(id);
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 public bool PostRemoveProduct(int id)
 {
     //int userID = userService.Get(CurrentUserLoginName).ID;
     //return orderService.RemoveProductFromShoppingCard(userID, productID: id);
     return(ambrella.RemoveProduct(id));
 }