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); }
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); }
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); }
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); }