public virtual ApiStudioResponseModel MapBOToModel( BOStudio boStudio) { var model = new ApiStudioResponseModel(); model.SetProperties(boStudio.Id, boStudio.Address1, boStudio.Address2, boStudio.City, boStudio.Name, boStudio.Province, boStudio.Website, boStudio.Zip); return(model); }
public virtual BOStudio MapEFToBO( Studio ef) { var bo = new BOStudio(); bo.SetProperties( ef.Id, ef.Address1, ef.Address2, ef.City, ef.Name, ef.Province, ef.Website, ef.Zip); return(bo); }
public virtual Studio MapBOToEF( BOStudio bo) { Studio efStudio = new Studio(); efStudio.SetProperties( bo.Address1, bo.Address2, bo.City, bo.Id, bo.Name, bo.Province, bo.Website, bo.Zip); return(efStudio); }
public virtual BOStudio MapModelToBO( int id, ApiStudioRequestModel model ) { BOStudio boStudio = new BOStudio(); boStudio.SetProperties( id, model.Address1, model.Address2, model.City, model.Name, model.Province, model.Website, model.Zip); return(boStudio); }