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 }); }
public CentreModel GetCentre(int centreId) => centreId == 0 ? null : _centreLogic.GetCentre(centreId);