public virtual ApiTenantVariableResponseModel MapBOToModel( BOTenantVariable boTenantVariable) { var model = new ApiTenantVariableResponseModel(); model.SetProperties(boTenantVariable.Id, boTenantVariable.EnvironmentId, boTenantVariable.JSON, boTenantVariable.OwnerId, boTenantVariable.RelatedDocumentId, boTenantVariable.TenantId, boTenantVariable.VariableTemplateId); return(model); }
public virtual BOTenantVariable MapEFToBO( TenantVariable ef) { var bo = new BOTenantVariable(); bo.SetProperties( ef.Id, ef.EnvironmentId, ef.JSON, ef.OwnerId, ef.RelatedDocumentId, ef.TenantId, ef.VariableTemplateId); return(bo); }
public virtual TenantVariable MapBOToEF( BOTenantVariable bo) { TenantVariable efTenantVariable = new TenantVariable(); efTenantVariable.SetProperties( bo.EnvironmentId, bo.Id, bo.JSON, bo.OwnerId, bo.RelatedDocumentId, bo.TenantId, bo.VariableTemplateId); return(efTenantVariable); }
public virtual BOTenantVariable MapModelToBO( string id, ApiTenantVariableRequestModel model ) { BOTenantVariable boTenantVariable = new BOTenantVariable(); boTenantVariable.SetProperties( id, model.EnvironmentId, model.JSON, model.OwnerId, model.RelatedDocumentId, model.TenantId, model.VariableTemplateId); return(boTenantVariable); }