예제 #1
0
        public void AddNewMedicine(MedicineDTO medicine, int prescriptionId)
        {
            var entity = _DTOMappers.Map(medicine);

            entity.PrescriptionId = prescriptionId;
            _medicineRepository.AddNew(entity);
        }
예제 #2
0
        public bool DeleteMedicine(MedicineDTO medicine)
        {
            var entity = _DTOMappers.Map(medicine);

            return(_medicineRepository.Delete(entity));
        }
예제 #3
0
 public Medicine Map(MedicineDTO medicine) => _mapper.Map <Medicine>(medicine);