protected void tableProductType_RowDeleting(object sender, GridViewDeleteEventArgs e) { int index = e.RowIndex; int userId = Int32.Parse(Session["id"].ToString()); string productId = tableCart.Rows[index].Cells[2].Text; int id = Int32.Parse(productId); CartHandler.DeleteCart(userId, id); Response.Redirect(Request.RawUrl); }
public static Response DeleteCart(int ProductID, int UserID) { Response response = CartHandler.DeleteCart(ProductID, UserID); return(response); }
public static void DeleteCart(int userId, int productId) { CartHandler.DeleteCart(userId, productId); }