コード例 #1
0
        public virtual BODashboardConfiguration MapEFToBO(
            DashboardConfiguration ef)
        {
            var bo = new BODashboardConfiguration();

            bo.SetProperties(
                ef.Id,
                ef.IncludedEnvironmentIds,
                ef.IncludedProjectIds,
                ef.IncludedTenantIds,
                ef.IncludedTenantTags,
                ef.JSON);
            return(bo);
        }
コード例 #2
0
        public virtual BODashboardConfiguration MapModelToBO(
            string id,
            ApiDashboardConfigurationRequestModel model
            )
        {
            BODashboardConfiguration boDashboardConfiguration = new BODashboardConfiguration();

            boDashboardConfiguration.SetProperties(
                id,
                model.IncludedEnvironmentIds,
                model.IncludedProjectIds,
                model.IncludedTenantIds,
                model.IncludedTenantTags,
                model.JSON);
            return(boDashboardConfiguration);
        }