示例#1
0
        // GET: Empresa
        public ActionResult Index(string search, int?page)
        {
            var cp    = new BLLEmpresa();
            var lista = cp.AllProveedor();
            var btc   = new BLLTipoContribuyente();

            ViewData["TipoContribuyente"] = btc.All();
            if (search == null)
            {
                search = "";
            }
            return(View(lista.Where(x => x.RazonSocial.ToUpper().StartsWith(search.ToUpper())).ToList().ToPagedList(page ?? 1, 10)));
        }