Ejemplo n.º 1
0
 public IActionResult AddProductToCart(int productId)
 {
     if (Session.username == null)
     {
         return(Redirect("https://localhost:5001/Home/Login"));
     }
     dbAccessor.AddProductToCart(Session.userId, 3, productId, 1);
     return(Redirect("https://localhost:5001/"));
 }