private void LoadAuthorQuotes(int authorId) { SelectedAuthor = _quotesRepository.GetAuthorById(authorId); if (_selectedAuthor != null) { if (IsTablet) { Title = $"{SelectedAuthor.FullName} Quotes"; } AuthorQuotes = new ObservableCollection <Quote>(_quotesRepository.GetQuotesByAuthor(authorId)); } }
private void LoadAuthorQuotes(int authorId) { SelectedAuthor = _quotesRepository.GetAuthorById(authorId); if (SelectedAuthor != null) { if (Device.Idiom == TargetIdiom.Tablet || Device.Idiom == TargetIdiom.Desktop) { Title = $"{SelectedAuthor.FullName} Quotes"; } AuthorQuotes = new ObservableCollection <Quote>(_quotesRepository.GetQuotesByAuthor(authorId)); } }