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); }
public List <PersonDto> GetListOfPeople() { var repo = PeopleServiceLocatorFactory.GetPersonRepository(); //Replace with correct WCF Unity implementation var list = Mapper.Map <List <PersonDto> >(repo.GetListOfPeople()); return(list); }