/// <summary> /// Add method. /// </summary> /// <param name="CartItemDTO"></param> /// <returns></returns> public CartItemDTO Add(CartItemDTO CartItemDTO) { var CartDAC = new CartDAC(); CartItemDTO.CreatedBy = CreatedBy; CartItemDTO.CreatedOn = CreatedOn; CartItemDTO.ChangedBy = ChangedBy; CartItemDTO.ChangedOn = ChangedOn; return(CartDAC.Create(CartItemDTO)); }
/// <summary> /// Add method. /// </summary> /// <param name="cart"></param> /// <returns></returns> public Cart Add(Cart cart) { var cartDac = new CartDAC(); return(cartDac.Create(cart)); }