예제 #1
0
        public ActionResult GetList(string keyWord)
        {
            var search = GetSearchModel();
            var list   = UserRoleRepository.GetList(keyWord, search);

            return(Json(list, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        // GET: Admin/SysApart
        public ActionResult Index()
        {
            var lstRole    = UserRoleRepository.GetList();
            var selectList = new SelectList(lstRole, "Id", "Name");

            ViewBag.RoleSList = selectList;
            return(View());
        }
예제 #3
0
        // GET: Admin/User
        public ActionResult Index()
        {
            var model = new UserIndexModel()
            {
                UserRoleList = UserRoleRepository.GetList()
            };

            return(View(model));
        }
예제 #4
0
        public override void ExecuteCommand(AppSession session, StringRequestInfo requestInfo)
        {
            UserRoleRepository repository = new UserRoleRepository();

            try
            {
                List <UserRole> list    = repository.GetList();
                string          message = JsonConvert.SerializeObject(list);
                session.Send(message);
            }
            catch
            {
                session.Send("NULL");
            }
        }
예제 #5
0
        public ActionResult Index(int pageSize = 30, int pageCurrent = 1)
        {
            var list = UserRoleRepository.GetList(pageSize, pageCurrent);

            return(PartialView(list));
        }