public void AddNewMedicine(MedicineDTO medicine, int prescriptionId) { var entity = _DTOMappers.Map(medicine); entity.PrescriptionId = prescriptionId; _medicineRepository.AddNew(entity); }
public bool AddNewMedicine(MedicineDto medicine, int prescriptionId) { var medicineEntity = _mapper.Map(medicine); medicineEntity.PrescriptionId = prescriptionId; return(_medicineRepository.AddNew(medicineEntity)); }
public void AddNewMedicine(MedicineDto medicine, int prescriptionId) { var entity = mDtoMapper.Map(medicine); entity.PrescriptionId = prescriptionId; mMedicineRepository.AddNew(entity); }