public async void PostDepartements() { var restClient = new GenericRestClient <Departement>(); await restClient.PostAsync(new Departement { Name = txtname1.Text, }); }
public async void GetEmployees() { var Restclient = new GenericRestClient <Employee>(); var employees = await Restclient.GetAsync(); Mainlistview.ItemsSource = employees; }
public async void PutDepartements() { var restClient = new GenericRestClient <Departement>(); var id = Int32.Parse(txtId2.Text); await restClient.PutAsync(id, new Departement { DepartementId = id, Name = txtname2.Text, }); }
public async void PutEmployees() { var restClient = new GenericRestClient <Employee>(); var id = Int32.Parse(txtId2.Text); await restClient.PutAsync(id, new Employee { Name = txtname2.Text, Email = txtmail2.Text, EmployeeId = int.Parse(txtId2.Text), }); }
public async void PostEmployees() { Employee E = new Employee(); E.Name = txtname1.Text; E.Email = txtmail1.Text; var restClient = new GenericRestClient <Employee>(); await restClient.PostAsync(new Employee { Name = txtname1.Text, Email = txtmail1.Text, }); }
public UpdateClient() { baseUri = "http://127.0.0.1:8080"; client = new GenericRestClient(baseUri); }
public async void DeleteDepartements() { var restClient = new GenericRestClient <Departement>(); var id = Int32.Parse(txtId3.Text); Boolean ok = await restClient.DeleteAsync(id); }
public async void GetDepartements() { var classs = new GenericRestClient <Departement>(); Mainlistview.ItemsSource = await classs.GetAsync(); }
public TasksViewModel() { _genericRestClient = new GenericRestClient <TaskModel>(); DownloadDataAsync(); }
public DownloadManagerClient() { baseUri = "http://127.0.0.1:8001"; client = new GenericRestClient(baseUri); }
public async void DeleteEmployees() { var restClient = new GenericRestClient <Employee>(); var id = Int32.Parse(txtId3.Text); Boolean ok = await restClient.DeleteAsync(id); }