示例#1
0
        public void AddNewPrescription(PrescriptionDto prescription, int doctorId)
        {
            var entity = _DtoMapper.Map(prescription);

            entity.DoctorId = doctorId;

            _PrescriptionRepository.AddNew(entity);
        }
示例#2
0
        public bool DeletePrescription(PrescriptionDto prescription)
        {
            var entity = _DtoMapper.Map(prescription);

            return(_PrescriptionRepository.Delete(entity));
        }
示例#3
0
 public Prescription Map(PrescriptionDto prescription) => _Mapper.Map <Prescription>(prescription);