Пример #1
0
 // GET: Bancos
 public ActionResult Index(string txtNombreBanco)
 {
     if (txtNombreBanco == null)
     {
         return(View(bancosManager.GetAllBancos()));
     }
     else
     {
         return(View(bancosManager.GetAllBancos().Where(x => (x.Nombre).ToUpper().Contains(txtNombreBanco.ToUpper()) || txtNombreBanco == null)));
     }
     // return View(bancosManager.GetAllBancos());
 }
Пример #2
0
        public List <Banco> ObtenerBancos()
        {
            BancosManager bancosManager = new BancosManager();

            return(bancosManager.GetAllBancos());
        }