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

            entity.DoctorId = DoctorId;
            _prescriptionRepository.AddNew(entity);
        }
예제 #2
0
        public void AddNewPrescription(PrescriptionDto prescription, int doctorId)
        {
            var entity = _DtoMapper.Map(prescription);

            entity.DoctorId = doctorId;

            _PrescriptionRepository.AddNew(entity);
        }
예제 #3
0
        public bool AddNewPrescription(PrescriptionDto prescription, int doctorId)
        {
            var prescriptionEntity = _mapper.Map(prescription);

            prescriptionEntity.DoctorId = doctorId;

            return(_prescriptionRepository.AddNew(prescriptionEntity));
        }