// GET: Logradouros/Create public ActionResult Create() { ViewBag.PaisId = new SelectList(_paisApp.GetAll(), "PaisId", "NomePais"); ViewBag.EstadoId = new SelectList(_estadoApp.GetAll(), "EstadoId", "NomeEstado"); ViewBag.MunicipioId = new SelectList(_municipioApp.GetAll(), "MunicipioId", "NomeMunicipio"); ViewBag.TipoLogradouroId = new SelectList(_tipoLogradouroApp.GetAll(), "TipoLogradouroId", "TipodoLogradouro"); return(View()); }
public IActionResult Get() { return(Response(_municipioAppService.GetAll())); }
// GET: Bairros/Create public ActionResult Create() { ViewBag.MunicipioId = new SelectList(_municipioApp.GetAll(), "MunicipioId", "NomeMunicipio"); return(View()); }
// GET: Municipio public ActionResult Index() { var municipioViewModel = Mapper.Map <IEnumerable <Municipio>, IEnumerable <MunicipioViewModel> >(_municipioApp.GetAll()); return(View(municipioViewModel)); }