public GetRegiones(string Codigo) { string[] tipos = new string[] { "regiones" }; string[] codigos = new string[] { Codigo }; GetFromAPI get = new GetFromAPI(tipos, codigos); Regiones = get.Lista; }
public GetComunas(string CodRegion, string CodComuna) { string[] tipos = new string[] { "regiones", "comunas" }; string[] codigos = new string[] { CodRegion, CodComuna }; GetFromAPI get = new GetFromAPI(tipos, codigos); Comunas = get.Lista; }
public GetRegiones() { GetFromAPI get = new GetFromAPI("regiones"); Regiones = get.Lista; }