public void AddNewPrescription(PrescriptionDTO prescription, int DoctorId) { var entity = _DTOMappers.Map(prescription); entity.DoctorId = DoctorId; _prescriptionRepository.AddNew(entity); }
public bool DeletePrescription(PrescriptionDTO prescription) { var entity = _DTOMappers.Map(prescription); return(_prescriptionRepository.Delete(entity)); }
public Prescription Map(PrescriptionDTO Prescription) => _mapper.Map <Prescription>(Prescription);