public ActionResult _UserSearchResult(string name) { var userList = _userServiceAgent.SearchUsers(name, User.Identity.GetUserId()); var objmodel = userList.Select(m => _defaultHelper.GetUserModel(m.UserInfo.UserId, m.UserInfo, m.FriendRequestStatus, m.IsRequestReceived)).ToList(); return(PartialView(objmodel)); }