public async Task <IEnumerable <PrescriptionObjectDto> > GetAllDoctorAsync(int idDoctor) { return((await prescriptionsRepository.GetAllDoctorPrescriptions(idDoctor)).Select(r => r.Map())); }