public IActionResult Search()
        {
            int                propertySearch = Convert.ToInt32(HttpContext.Request.Query["propertysearch"].ToString().Trim().ToLower());
            string             textsearch     = HttpContext.Request.Query["textsearch"].ToString().Trim().ToLower();
            string             strPage        = HttpContext.Request.Query["page"].ToString();
            int                page           = Convert.ToInt32(strPage == "" ? "1" : strPage);
            List <AccountView> listUser       = new List <AccountView>();

            switch (propertySearch)
            {
            case (int)SearchUser.Code:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Code);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Code);
                break;

            case (int)SearchUser.Name:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Name);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Name);
                break;

            case (int)SearchUser.Email:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Email);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Email);
                break;

            case (int)SearchUser.Phone:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Phone);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Phone);
                break;

            case (int)SearchUser.Address:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Address);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Address);
                break;

            default:
                listUser     = accountRepository.Search(page, textsearch, (int)SearchUser.Code);
                ViewBag.Rows = accountRepository.CountSearchData(textsearch, (int)SearchUser.Code);
                break;
            }
            return(View("index", listUser));
        }