Example #1
0
 public QuestionDTO ConvertEntityToDTO(Question entity)
 => new QuestionDTO(
     entity.Id,
     entity.QuestionText,
     entity.AnswerText,
     _patientConverter.ConvertEntityToDTO(entity.Patient),
     new SecretaryDTO(),
     entity.CreationDate
     );
Example #2
0
 public PrescriptionDTO ConvertEntityToDTO(Prescription entity)
 => new PrescriptionDTO(
     entity.Id,
     entity.Dosage,
     entity.Usage,
     entity.Period,
     _medicineConverter.ConvertEntityToDTO(entity.Medicine),
     entity.Date,
     _patientConverter.ConvertEntityToDTO(entity.Patient)
     );