// GET: Departamentos public ActionResult Index() { var logica = new DepartamentoLogica(); var listado = logica.GetListadoDepartamentos(); return(View(listado)); }
// GET: DepartamentoModels public ActionResult Index() { var deptos = logica.GetListadoDepartamentos(); return(View(deptos)); }
// GET: CiudadModels/Create public ActionResult Create(int?id) { ViewBag.Departamentos = logicadepto.GetListadoDepartamentos(); ViewBag.DepartamentoId = id; return(View()); }