コード例 #1
0
        public PersonDetailsDto GetPersonDetails(string name)
        {
            var repo   = PeopleServiceLocatorFactory.GetPersonRepository(); //Replace with correct WCF Unity implementation
            var person = Mapper.Map <PersonDetailsDto>(repo.GetPersonDetails(name));

            return(person);
        }
コード例 #2
0
        public List <PersonDto> GetListOfPeople()
        {
            var repo = PeopleServiceLocatorFactory.GetPersonRepository(); //Replace with correct WCF Unity implementation
            var list = Mapper.Map <List <PersonDto> >(repo.GetListOfPeople());

            return(list);
        }