public static List <CloudResource> GetSandboxResourceGroupsForStudy(Study study)
 {
     return(study.Sandboxes
            .Where(sb => !SoftDeleteUtil.IsMarkedAsDeleted(sb))
            .Select(sb => GetSandboxResourceGroupEntry(sb.Resources))
            .Where(r => !r.Deleted)
            .ToList());
 }
 public static List <CloudResource> GetDatasetResourceGroupsForStudy(Study study)
 {
     return(study.Resources
            .Where(r => !SoftDeleteUtil.IsMarkedAsDeleted(r) && r.ResourceType == AzureResourceType.ResourceGroup && r.Purpose == CloudResourcePurpose.StudySpecificDatasetContainer)
            .ToList());
 }