コード例 #1
0
 public async void PostDepartements()
 {
     var restClient = new GenericRestClient <Departement>();
     await restClient.PostAsync(new Departement
     {
         Name = txtname1.Text,
     });
 }
コード例 #2
0
        public async void GetEmployees()
        {
            var Restclient = new GenericRestClient <Employee>();

            var employees = await Restclient.GetAsync();

            Mainlistview.ItemsSource = employees;
        }
コード例 #3
0
 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,
     });
 }
コード例 #4
0
 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),
     });
 }
コード例 #5
0
        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,
            });
        }
コード例 #6
0
ファイル: UpdateClient.cs プロジェクト: danypandey/ClientAppp
 public UpdateClient()
 {
     baseUri = "http://127.0.0.1:8080";
     client  = new GenericRestClient(baseUri);
 }
コード例 #7
0
 public async void DeleteDepartements()
 {
     var     restClient = new GenericRestClient <Departement>();
     var     id         = Int32.Parse(txtId3.Text);
     Boolean ok         = await restClient.DeleteAsync(id);
 }
コード例 #8
0
        public async void GetDepartements()
        {
            var classs = new GenericRestClient <Departement>();

            Mainlistview.ItemsSource = await classs.GetAsync();
        }
コード例 #9
0
        public TasksViewModel()
        {
            _genericRestClient = new GenericRestClient <TaskModel>();

            DownloadDataAsync();
        }
コード例 #10
0
 public DownloadManagerClient()
 {
     baseUri = "http://127.0.0.1:8001";
     client  = new GenericRestClient(baseUri);
 }
コード例 #11
0
 public async void DeleteEmployees()
 {
     var     restClient = new GenericRestClient <Employee>();
     var     id         = Int32.Parse(txtId3.Text);
     Boolean ok         = await restClient.DeleteAsync(id);
 }