示例#1
0
 public IActionResult Buy(int id)
 {
     UserCartManager.Create(HttpContext.Session.GetUserId(), id);
     return(RedirectToAction("MyCart", "Account"));
 }
示例#2
0
 public IActionResult Buy(int id)
 {
     //jasaglaba izveleta prece lietotaja groza.
     UserCartManager.Create(HttpContext.Session.GetUserId(), id);
     return(RedirectToAction("MyCart", "Account"));
 }