public IActionResult GetPatientById(int id) { var patient = patientRepo.GetPatient(id); if (patient != null) { return(Ok(patient)); } return(NotFound()); }
public List <Patient> GetPatient(int pId) { var patient = _patientData.GetPatient(pId); return(patient); }
/// <summary> /// Looks for PatientInfo object with requested Id /// </summary> /// <param name="patientId">Id of PatientInfo to look for</param> /// <returns>PatientInfo object with specified Id or NULL if not found</returns> public PatientInfo GetPatientById(int patientId) { return(_data.GetPatient(patientId)); }