public static bool Delete(Guid cartGuid) { CartOffer.DeleteByCart(cartGuid); CartOrderInfo.Delete(cartGuid); return(DBCart.DeleteCart(cartGuid)); }
public static bool DeleteByStore(Guid storeGuid, DateTime olderThan) { CartOffer.DeleteByStore(storeGuid, olderThan); CartOrderInfo.DeleteByStore(storeGuid, olderThan); return(DBCart.DeleteByStore(storeGuid, olderThan)); }
public void ResetUserInfo() { CartOrderInfo info = new CartOrderInfo(); info.CartGuid = this.cartGuid; info.Save(); orderInfo = info; }