Exemplo n.º 1
0
 public async Task <Doctor> Handle(CreateDoctorCommand request, CancellationToken cancellationToken)
 {
     return(await _doctorRepository.AddAsync(request.Doctor));
 }
 public async Task <int> Add(DoctorModel doctor)
 {
     return(await _doctorRepository.AddAsync(doctor));
 }