public virtual ApiProductInventoryResponseModel MapBOToModel(
            BOProductInventory boProductInventory)
        {
            var model = new ApiProductInventoryResponseModel();

            model.SetProperties(boProductInventory.ProductID, boProductInventory.Bin, boProductInventory.LocationID, boProductInventory.ModifiedDate, boProductInventory.Quantity, boProductInventory.Rowguid, boProductInventory.Shelf);

            return(model);
        }
        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);
        }
        public virtual ProductInventory MapBOToEF(
            BOProductInventory bo)
        {
            ProductInventory efProductInventory = new ProductInventory();

            efProductInventory.SetProperties(
                bo.Bin,
                bo.LocationID,
                bo.ModifiedDate,
                bo.ProductID,
                bo.Quantity,
                bo.Rowguid,
                bo.Shelf);
            return(efProductInventory);
        }
        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);
        }