Beispiel #1
0
        public bool AddNewPrescription(PrescriptionDto prescription, int doctorId)
        {
            var prescriptionEntity = _mapper.Map(prescription);

            prescriptionEntity.DoctorId = doctorId;

            return(_prescriptionRepository.AddNew(prescriptionEntity));
        }
Beispiel #2
0
 // prescription dto => prescription entity
 public PrescriptionEntity Map(PrescriptionDto prescriptionDto) => _mapper.Map <PrescriptionEntity>(prescriptionDto);