public object GetPersonByAccountTest() { // AccountRepository repository = new AccountRepository(); // Account account = repository.ActiveContext.Accounts.Include("Lawyers.Person").Include("Customers.Person").FirstOrDefault(a => a.Code == "1/0/0"); // var firstnames = account.Lawyers.Select(o => o.Person.Firstname).Union(account.Customers.Select(a => a.Person.Firstname)).ToList(); PersonAccountService personAccountService = new PersonAccountService(); List<PersonDto> list = personAccountService.GetPersonByAccount("1/0/0"); return null; }
public string gerpersonsbyaccount() { PersonAccountService ps = new PersonAccountService(); List<PersonDto> personDtos = ps.GetPersonByAccount("1/0/0"); return "yes"; }