private async void Submit_add_representative_Click(object sender, RoutedEventArgs e) { RepresentativeModel tempRepresentative = new RepresentativeModel(name.Text, surname.Text, Convert.ToInt32(contactNumber.Text), email.Text, Convert.ToInt32((companyId.SelectedItem as Models.ComboBoxItem).Value)); await RepresentativeProcessor.UploadRepresentative(tempRepresentative); this.NavigationService.Navigate(new CompaniesPage()); }
private async Task LoadFromServerToGrid() { await CompanyProcessor.LoadCompanies(); await RepresentativeProcessor.LoadRepresentatives(); await InvoiceProcessor.LoadInvoices(); }
public RepresentativesPage(int id) { InitializeComponent(); Representatives_Grid.DataContext = RepresentativeProcessor.RepresentativesFromCompany(id); }