Beispiel #1
0
        // GET: Deposito
        public ActionResult Index()
        {
            List <DepositoModel> lista;

            using (CPMEntities datos = new CPMEntities())
            {
                lista = (from d in datos.SP_Deposito() select new DepositoModel {
                    IdDeposito = d.IdDeposito, NombreBanco = d.Banco, Descripcion = d.Descripcion, NCuenta = d.Cuenta, IdUsuario = d.IdUsuario, NombreUsuario = d.Usuario, IdCuenta = d.IdCuenta, IdCliente = d.IdCliente, NombreCliente = d.Cliente, Fecha = d.Fecha, Valor = d.Valor
                }).ToList();
            }
            return(View(lista));
        }