// GET: InquilinosController public ActionResult Index() { try { List <Inquilino> lista = repositorioInquilino.ObtenerTodos(); return(View(lista)); } catch (Exception) { throw; } }
// GET: ContratosController/Crear public ActionResult Crear() { ViewBag.Inmuebles = repositorioInmueble.ObtenerTodos(); ViewBag.Inquilinos = repositorioInquilino.ObtenerTodos(); return(View()); }