public ActionResult Index(int page, string filter, string action, UserDeleteModel[] list) { if (action == "new") return Create(); if (action == "delete") return Delete(page, filter, list); ModelState.AddModelError("", Resources.UserController.InvalidAction); var vm = new UsersViewModel(UserManagementRepository, page, filter); return View("Index", vm); }
public ActionResult Index(string action, UserDeleteModel[] list) { if (action == "new") return Create(); if (action == "delete") return Delete(list); ModelState.AddModelError("", "Invalid action."); var vm = new UsersViewModel(UserManagementRepository, null); return View("Index", vm); }
public ActionResult Index(string filter = null) { var vm = new UsersViewModel(UserManagementRepository, filter); return View("Index", vm); }