public ActionResult GetList(string keyWord) { var search = GetSearchModel(); var list = UserRoleRepository.GetList(keyWord, search); return(Json(list, JsonRequestBehavior.AllowGet)); }
// GET: Admin/SysApart public ActionResult Index() { var lstRole = UserRoleRepository.GetList(); var selectList = new SelectList(lstRole, "Id", "Name"); ViewBag.RoleSList = selectList; return(View()); }
// GET: Admin/User public ActionResult Index() { var model = new UserIndexModel() { UserRoleList = UserRoleRepository.GetList() }; return(View(model)); }
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"); } }
public ActionResult Index(int pageSize = 30, int pageCurrent = 1) { var list = UserRoleRepository.GetList(pageSize, pageCurrent); return(PartialView(list)); }