private async Task PrepareSave() { await PrepareEdit(); SaveList = EditList == null?Enumerable.Empty <Media>() : EditList.Where(el => el.SearchResult != null && el.Media != null).Select(el => el.Media).ToList(); CanSave = SaveList.Any() || !string.IsNullOrEmpty(SelectedDirectory); }