Ejemplo n.º 1
0
        public UserViewModel Search(string name)
        {
            string searchingName = "";

            foreach (var v in name)

            {
                if (v != ' ')

                {
                    searchingName += v;
                }
            }

            var serviceUser = messengerService.Search(searchingName);

            var resultUser = mapper.Map <User, UserViewModel>(serviceUser);

            return(resultUser);
        }