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 async Task <IActionResult> GetConsultation([FromRoute] Guid id) { var consultation = await consultationLogic.GetConsultation <GetConsultationResponse>(x => x.Id == id); if (consultation == null) { return(NotFound()); } return(Ok(consultation)); }