// GET: UserManage public ActionResult Index(String name, Int32 pageIndex = 0) { if (!string.IsNullOrEmpty(name)) { name = name.Trim(); } UserManageIndexModel model = new UserManageIndexModel(); model.FilterName = name; UserInfoCondition condition = new UserInfoCondition(); condition.DisplayName = name; IEnumerable<UserInfo> users = this.IUserInfoDataProvider.GetUserList(condition); PagingContent<UserInfo> paging = new PagingContent<UserInfo>(users, pageIndex); foreach (var item in paging.EntityList) { model.userModelList.Add(UserModel.GetViewModel(item)); } model.PagingContent = paging; return View(model); }
public ActionResult Index(UserManageIndexModel model) { return RedirectToAction("Index", new { name = model.FilterName }); }