Beispiel #1
0
        private void submit_Click(object sender, System.EventArgs e)
        {
            AlumnoModel alumno = new AlumnoModel(textBox1.Text, textBox2.Text, textBox3.Text);

            string message = HttpApiController.AddAlumno(alumno).Result;
            //label4.Text = message;
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            //this.Hide();
            Form2  frm = new Form2();
            string asd = HttpApiController.Delete(4).Result;

            //label1.Text = HttpApiController.FindAsync(4).Result.ToString();
            frm.Show();
        }
Beispiel #3
0
 public Form1()
 {
     InitializeComponent();
     dataGrid.AutoGenerateColumns = true;
     controller = new HttpApiController();
 }