private async Task <Person> Get(IPersonIdentity Person) { if (Person == null) { throw new ArgumentNullException(nameof(Person)); } return(await this.Context.Person.Include(x => x.PhoneNumber) .FirstOrDefaultAsync(x => x.Id == Person.Id)); }
private async Task <Entities.Person> Get(IPersonIdentity employee) { if (employee == null) { throw new ArgumentNullException(nameof(employee)); } return(await this.Context.Persons.Include(x => x.Secret) .FirstOrDefaultAsync(x => x.Id == employee.Id)); }
public async Task <Person> GetAsync(IPersonIdentity Person) { var result = await this.Get(Person); return(this.Mapper.Map <Person>(result)); }
public Task <Person> GetAsync(IPersonIdentity person) { return(this.PersonDataAccess.GetAsync(person)); }
public PersonsController(ICrud persons, IPersonIdentity personIdentity, IPersonAddress personAddress) { _persons = persons; _personIdentity = personIdentity; _personAddress = personAddress; }