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