예제 #1
0
        public void AddNewPrescription(PrescriptionDTO prescription, int DoctorId)
        {
            var entity = _DTOMappers.Map(prescription);

            entity.DoctorId = DoctorId;
            _prescriptionRepository.AddNew(entity);
        }
예제 #2
0
        public bool DeletePrescription(PrescriptionDTO prescription)
        {
            var entity = _DTOMappers.Map(prescription);

            return(_prescriptionRepository.Delete(entity));
        }
예제 #3
0
 public Prescription Map(PrescriptionDTO Prescription) => _mapper.Map <Prescription>(Prescription);