private QualityProfileResource GetSchema() { QualityProfile qualityProfile = _profileService.GetDefaultProfile(string.Empty); return(qualityProfile.ToResource()); }
private List <ProfileResource> GetAll() { var items = _qualityDefinitionService.All() .OrderBy(v => v.Weight) .Select(v => new QualityProfileQualityItem { Quality = v.Quality, Allowed = false }) .ToList(); var profile = new QualityProfile(); profile.Cutoff = Quality.Unknown.Id; profile.Items = items; return(new List <ProfileResource> { profile.ToResource() }); }