public void AddDashboardConfiguration(ApiDashboardConfigurationResponseModel item) { if (!this.DashboardConfigurations.Any(x => x.Id == item.Id)) { this.DashboardConfigurations.Add(item); } }
public virtual ApiDashboardConfigurationRequestModel MapResponseToRequest( ApiDashboardConfigurationResponseModel response) { var request = new ApiDashboardConfigurationRequestModel(); request.SetProperties( response.IncludedEnvironmentIds, response.IncludedProjectIds, response.IncludedTenantIds, response.IncludedTenantTags, response.JSON); return(request); }