Beispiel #1
0
        public virtual ApiProductModelResponseModel MapBOToModel(
            BOProductModel boProductModel)
        {
            var model = new ApiProductModelResponseModel();

            model.SetProperties(boProductModel.ProductModelID, boProductModel.CatalogDescription, boProductModel.Instruction, boProductModel.ModifiedDate, boProductModel.Name, boProductModel.Rowguid);

            return(model);
        }
Beispiel #2
0
        public virtual BOProductModel MapEFToBO(
            ProductModel ef)
        {
            var bo = new BOProductModel();

            bo.SetProperties(
                ef.ProductModelID,
                ef.CatalogDescription,
                ef.Instruction,
                ef.ModifiedDate,
                ef.Name,
                ef.Rowguid);
            return(bo);
        }
Beispiel #3
0
        public virtual ProductModel MapBOToEF(
            BOProductModel bo)
        {
            ProductModel efProductModel = new ProductModel();

            efProductModel.SetProperties(
                bo.CatalogDescription,
                bo.Instruction,
                bo.ModifiedDate,
                bo.Name,
                bo.ProductModelID,
                bo.Rowguid);
            return(efProductModel);
        }
Beispiel #4
0
        public virtual BOProductModel MapModelToBO(
            int productModelID,
            ApiProductModelRequestModel model
            )
        {
            BOProductModel boProductModel = new BOProductModel();

            boProductModel.SetProperties(
                productModelID,
                model.CatalogDescription,
                model.Instruction,
                model.ModifiedDate,
                model.Name,
                model.Rowguid);
            return(boProductModel);
        }