public ActionResult Index()
        {
            ComPanyOP op   = new ComPanyOP();
            var       data = op.GetList().FirstOrDefault();

            return(View(data));
        }
Esempio n. 2
0
        //
        // GET: /Company/

        public ActionResult Index(string txtSearch = "")
        {
            ComPanyOP op = new ComPanyOP();

            int total;

            var data = op.GetList(txtSearch, PageNumber, ConstInfo.PAGE_SIZE, out total);

            ViewBag.TotalRecords = total;

            return(View(data));
        }