private async void PopulateQuotes() { if (_isQuotesLoaded) { return; } if (DAuthorController.QuotesLoaded() && DAuthorController.isSameRequest()) { BindCollectionToView(); return; } if (DAuthorController.HasQuotes()) { ShowQuotesLoadingIndicator(); bool result = await DAuthorController.FetchQuotes(); HideQuotesLoadingIndicator(); if (result) { BindCollectionToView(); } else { ShowNoQuotesView(); } } }
private async void PopulateQuotes() { if (_isQuotesLoaded) { return; } if (DAuthorController.QuotesLoaded() && DAuthorController.isSameRequest()) { BindCollectionToView(); return; } if (DAuthorController.HasQuotes()) { bool result = await DAuthorController.FetchQuotes(); if (result) { BindCollectionToView(); } } }