Exemple #1
0
        public PrintModel Print(int consultationId)
        {
            var consultationModel = _consultationLogic.GetConsultation(consultationId);
            var patient           = _patientLogic.GetPatient(consultationModel.PatientId);
            var centreModel       = _centreLogic.GetCentre(Convert.ToInt32(patient.RegisteredCentreId));

            return(new PrintModel {
                ConsultationModel = consultationModel, CentreModel = centreModel
            });
        }
Exemple #2
0
 public CentreModel GetCentre(int centreId) => centreId == 0 ? null : _centreLogic.GetCentre(centreId);