示例#1
0
        //
        // GET: /Banco/
        public ActionResult Index()
        {
            var bancoModel = Mapper.Map <IEnumerable <Banco>, IEnumerable <BancoModel> >(_bancoAppService.ListarTodos());

            return(View(bancoModel));
        }
示例#2
0
 // GET: Sucursal/Create
 public ActionResult Create()
 {
     ViewBag.Bancos = new SelectList(_bancoAppService.ListarTodos(), "Id", "Nombre");
     return(View());
 }