public virtual ApiTenantResponseModel MapBOToModel( BOTenant boTenant) { var model = new ApiTenantResponseModel(); model.SetProperties(boTenant.Id, boTenant.DataVersion, boTenant.JSON, boTenant.Name, boTenant.ProjectIds, boTenant.TenantTags); return(model); }
public virtual BOTenant MapEFToBO( Tenant ef) { var bo = new BOTenant(); bo.SetProperties( ef.Id, ef.DataVersion, ef.JSON, ef.Name, ef.ProjectIds, ef.TenantTags); return(bo); }
public virtual Tenant MapBOToEF( BOTenant bo) { Tenant efTenant = new Tenant(); efTenant.SetProperties( bo.DataVersion, bo.Id, bo.JSON, bo.Name, bo.ProjectIds, bo.TenantTags); return(efTenant); }
public virtual BOTenant MapModelToBO( string id, ApiTenantRequestModel model ) { BOTenant boTenant = new BOTenant(); boTenant.SetProperties( id, model.DataVersion, model.JSON, model.Name, model.ProjectIds, model.TenantTags); return(boTenant); }