示例#1
0
 public void AddDashboardConfiguration(ApiDashboardConfigurationResponseModel item)
 {
     if (!this.DashboardConfigurations.Any(x => x.Id == item.Id))
     {
         this.DashboardConfigurations.Add(item);
     }
 }
示例#2
0
        public virtual ApiDashboardConfigurationRequestModel MapResponseToRequest(
            ApiDashboardConfigurationResponseModel response)
        {
            var request = new ApiDashboardConfigurationRequestModel();

            request.SetProperties(
                response.IncludedEnvironmentIds,
                response.IncludedProjectIds,
                response.IncludedTenantIds,
                response.IncludedTenantTags,
                response.JSON);
            return(request);
        }