Exemplo n.º 1
0
        private async Task <Doctor> Get(IDoctorIdentity doctor)
        {
            if (doctor == null)
            {
                throw new ArgumentNullException(nameof(doctor));
            }

            return(await this.Context.Doctor.FirstOrDefaultAsync(x => x.Id == doctor.Id));
        }
Exemplo n.º 2
0
 public Task <Doctor> GetAsync(IDoctorIdentity id)
 {
     return(this.DoctorDAL.GetAsync(id));
 }
Exemplo n.º 3
0
        public async Task <MyWebApp.Domain.Doctor> GetAsync(IDoctorIdentity doctor)
        {
            var result = await this.Get(doctor);

            return(this.Mapper.Map <MyWebApp.Domain.Doctor>(result));
        }