public async Task Load() { try { IsBusy = true; var context = new QuotationNotesQueryContext { CustomerInfo = Api.GetCustomerContext(), CustAccount = _inquiry.CustAccount, Id = _inquiry.QuotationId }; var quotationNotes = await Api.GetQuotationNotes(context); if (!quotationNotes.Successful.GetValueOrDefault() || quotationNotes.ValidationErrors.Any()) { await Alert.DisplayApiCallError(quotationNotes.ExceptionMessage, quotationNotes.ValidationErrors); return; } NoteList = new ObservableCollection <QuotationNote>(quotationNotes.Data); NoResults = !_noteList.Any(); } catch (Exception e) { await Alert.DisplayError(e); } finally { IsBusy = false; } }
public async Task <ApiResponseOfListOfQuotationNote> GetQuotationNotes(QuotationNotesQueryContext context) { return(await AXClient.Instance.GetQuotationNotesAsync(context) .ConfigureAwait(false)); }