public void AddNewPrescription(PrescriptionDto prescription, int doctorId) { var entity = _DtoMapper.Map(prescription); entity.DoctorId = doctorId; _PrescriptionRepository.AddNew(entity); }
public bool DeletePrescription(PrescriptionDto prescription) { var entity = _DtoMapper.Map(prescription); return(_PrescriptionRepository.Delete(entity)); }
public Prescription Map(PrescriptionDto prescription) => _Mapper.Map <Prescription>(prescription);