public async Task <IEnumerable <Favorite> > GetAllFavorites() { var favorites = await Task.Run(() => { // order by in service level until litedb v5 is released (sorting not yet supported natively) return(_favoriteRepository.GetAll().OrderBy(f => f.Name).ToList()); }); return(favorites); }