private string[] GetMimeTypes() { return(FileTypeChoices .SelectMany(choice => choice.Value) .Select(extension => MimeTypeService.GetFromExtension(extension)) .Distinct() .ToArray()); }
private string[] GetFileTypes() => FileTypeChoices.SelectMany(x => x.Value.Select(val => val.TrimStart(new[] { '.' }))).ToArray();