public void AddNewPrescription(PrescriptionDTO prescription, int DoctorId) { var entity = _DTOMappers.Map(prescription); entity.DoctorId = DoctorId; _prescriptionRepository.AddNew(entity); }
public void AddNewPrescription(PrescriptionDto prescription, int doctorId) { var entity = _DtoMapper.Map(prescription); entity.DoctorId = doctorId; _PrescriptionRepository.AddNew(entity); }
public bool AddNewPrescription(PrescriptionDto prescription, int doctorId) { var prescriptionEntity = _mapper.Map(prescription); prescriptionEntity.DoctorId = doctorId; return(_prescriptionRepository.AddNew(prescriptionEntity)); }