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); }
public Boolean Delete(SqlInt32 CartID, SqlInt32 UserID) { CartDAL dalCart = new CartDAL(); if (dalCart.Delete(CartID, UserID)) { return(true); } else { Message = dalCart.Message; return(false); } }
public int Delete(int id) { return(_dao.Delete(id)); }