Example #1
0
        public ApiMessage <bool> CartDel(string id, int t = 0)
        {
            var api = new ApiMessage <bool>();

            api = t == 0 ? cartDAL.Delete(new List <string> {
                id
            }) : cartDAL.DelAll(id);
            return(api);
        }
Example #2
0
        public Boolean Delete(SqlInt32 CartID, SqlInt32 UserID)
        {
            CartDAL dalCart = new CartDAL();

            if (dalCart.Delete(CartID, UserID))
            {
                return(true);
            }
            else
            {
                Message = dalCart.Message;
                return(false);
            }
        }
Example #3
0
 public int Delete(int id)
 {
     return(_dao.Delete(id));
 }