Example #1
0
        public async Task <IEnumerable <UserDto> > GetSearchFriendCandidatesAsync(string userName, string input)
        {
            var friends = await _friendsService.GetFriendsByUserNameAsync(userName);

            return(friends.Where(x => x.UserName.ToUpper().Contains(input.ToUpper())));
        }