コード例 #1
0
        public virtual BOProductInventory MapEFToBO(
            ProductInventory ef)
        {
            var bo = new BOProductInventory();

            bo.SetProperties(
                ef.ProductID,
                ef.Bin,
                ef.LocationID,
                ef.ModifiedDate,
                ef.Quantity,
                ef.Rowguid,
                ef.Shelf);
            return(bo);
        }
コード例 #2
0
        public virtual BOProductInventory MapModelToBO(
            int productID,
            ApiProductInventoryRequestModel model
            )
        {
            BOProductInventory boProductInventory = new BOProductInventory();

            boProductInventory.SetProperties(
                productID,
                model.Bin,
                model.LocationID,
                model.ModifiedDate,
                model.Quantity,
                model.Rowguid,
                model.Shelf);
            return(boProductInventory);
        }