Пример #1
0
        public IActionResult SearchUser(string userId, string word)
        {
            var result = _userEngine.SearchUser(word);

            if (result.Data.Count == 0)
            {
                ViewBag.UserCount = 0;
            }
            Search(userId);
            return(Json(result));
        }