Exemplo n.º 1
0
        // GET: User
        public ActionResult ListUser(Int32?p)
        {
            var vm = new ListUserViewModel();

            vm.Fill(CargarDatosContext(), p);
            return(View(vm));
        }
        public ActionResult Index(Int32 page = 1, String status = null, String role = null)
        {
            Int32             itemsPerPage = 4;
            ListUserViewModel obj          = new ListUserViewModel();

            obj.Fill(page, itemsPerPage, status, role);

            return(View(obj));
        }