示例#1
0
        protected void btn1_Click(object sender, EventArgs e)
        {
            string nombre    = txt1.Text;
            string prioridad = txt2.Text;

            string url = "http://localhost:51272/api/Tarea";

            api ap = new api();


            TareaRequest req = new TareaRequest();
            job          j   = new job();

            req.nombre    = j.nombre;
            req.prioridad = j.prioridad;


            string res = ap.Send <TareaRequest>(url, req, "POST");
        }