Actually I want to consume 2 rest services one that lists departments of a url locally, here the list of departments: link
[{"iIdSede":3,"iIdSedeZona":1,"vcDescripcion":"PASCO"},{"iIdSede":5,"iIdSedeZona":11,"vcDescripcion":"LIMA"},{"iIdSede":85,"iIdSedeZona":5,"vcDescripcion":"AREQUIPA"},{"iIdSede":86,"iIdSedeZona":7,"vcDescripcion":"PISCO"},
And the other one that when I select a department I select its province by the id of the department selected an example, where the id = 3: link
[{"vcDescripcion":"Cerro de Paso"},{"vcDescripcion":"Oxapampa"},{"vcDescripcion":"Daniel Carrion"}
What I want to do is consume it with Ajax for the two ComboBox but I do not know how to do it if you could help me, I would be very grateful
@{
ViewBag.Title = "Departamentos y su Provincias";
}
<section class="content-header">
<h1>
Departamentos y su Provincias
</h1>
</section>
<br />
<label class="col-md-6">ORIGEN</label>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label class="col-md-6">Sede</label>
<div class="col-md-6">
<select id="depaId" class="form-control">
<option value="Select">Seleccione</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-6">Servicio</label>
<div class="col-md-6">
<select id="proviId" class="form-control">
<option value="Select">Seleccione</option>
</select>
</div>
</div>
</div>
</div>
</div>