public ActionResult Index(AccountRoleSearch search)
        {
            if (TempData["HintMessage"] != null)
            {
                ViewData["HintMessage"] = TempData["HintMessage"];
            }

            if (search == null)
                search = new AccountRoleSearch();
            AccountRoleIndexModel model = new AccountRoleIndexModel(search, Core.Business.Account.Search(new AccountSearch() { Name = search.Name, Gender = search.Gender != null ? (Core.Business.Gender)search.Gender.Value : Core.Business.Gender.NotGiven, PageIndex = 1, PageSize = 100 }).Accounts);
            return View(model);
        }
 public AccountRoleIndexModel(AccountRoleSearch search, IList<Core.Business.Account> accounts)
     : this()
 {
     this.Accounts = accounts;
     this.Search = search;
 }