public async Task <bool> CreateNewLibrary(string name) { if (!CanCreateLibrary(name).result) { return(false); } var newLib = await LibraryHelper.CreateLibrary(name); if (newLib != null) { Libraries.AddSorted(newLib); return(true); } return(false); }