public virtual BOShoppingCartItem MapEFToBO(
            ShoppingCartItem ef)
        {
            var bo = new BOShoppingCartItem();

            bo.SetProperties(
                ef.ShoppingCartItemID,
                ef.DateCreated,
                ef.ModifiedDate,
                ef.ProductID,
                ef.Quantity,
                ef.ShoppingCartID);
            return(bo);
        }
Exemplo n.º 2
0
        public virtual BOShoppingCartItem MapModelToBO(
            int shoppingCartItemID,
            ApiShoppingCartItemRequestModel model
            )
        {
            BOShoppingCartItem boShoppingCartItem = new BOShoppingCartItem();

            boShoppingCartItem.SetProperties(
                shoppingCartItemID,
                model.DateCreated,
                model.ModifiedDate,
                model.ProductID,
                model.Quantity,
                model.ShoppingCartID);
            return(boShoppingCartItem);
        }