Example #1
0
        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);
        }
Example #2
0
        public static Response DeleteCart(int ProductID, int UserID)
        {
            Response response = CartHandler.DeleteCart(ProductID, UserID);

            return(response);
        }
Example #3
0
 public static void DeleteCart(int userId, int productId)
 {
     CartHandler.DeleteCart(userId, productId);
 }