public ActionResult List() { var model = new UserList { Users = Get<IUserRepository>().GetAll(), Roles = Get<IRoleRepository>().GetAll() }; return View(model); }
public ActionResult Add(UserList form) { string controller = String.Format("{0}s", form.Role.Name); const string action = "Add"; return RedirectToRoute(new {area = "Admin", controller, action}); }