Exemplo n.º 1
0
        // GET: Cuenta
        public ActionResult Index()
        {
            List <CuentaModel> lista;

            using (CPMEntities datos = new CPMEntities())
            {
                lista = (from d in datos.SP_Cuentas(1) select new CuentaModel {
                    IdCuenta = d.IdCuenta, IdBanco = d.IdBanco, NombreBanco = d.Nombre, Saldo = d.Saldo, NCuenta = d.NCuenta
                }).ToList();
            }
            return(View(lista));
        }