Ejemplo n.º 1
0
        public ActionResult Index()
        {
            ComPanyOP op   = new ComPanyOP();
            var       data = op.GetList().FirstOrDefault();

            return(View(data));
        }
Ejemplo 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));
        }