예제 #1
0
        public IEnumerable <FoundUsersViewModel> GetUsersByName(string word)
        {
            if (string.IsNullOrEmpty(word))
            {
                return(new FoundUsersViewModel[] { new FoundUsersViewModel {
                                                       Login = string.Empty, Name = string.Empty
                                                   } });
            }

            return(mapper.Map <IEnumerable <FoundUsersViewModel> >(userRepo.GetFamiliarUserNames(word)));
        }