// 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()); }
public List <Banco> ObtenerBancos() { BancosManager bancosManager = new BancosManager(); return(bancosManager.GetAllBancos()); }