예제 #1
0
        public List <PersonDto> SearchPersonByname(string personName)
        {
            var httpClient = new PersonApiClient.PersonApiClient();
            var personList = httpClient.GetAllPerson();

            return(string.IsNullOrEmpty(personName) ? personList : personList.Where(p => p.Firstname.ToUpper().Contains(personName.ToUpper()) || p.LastName.ToUpper().Contains(personName.ToUpper())).ToList());
        }
예제 #2
0
        public List <PersonDto> GetAllPerson()
        {
            var httpClient = new PersonApiClient.PersonApiClient();

            return(httpClient.GetAllPerson());
        }