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