public IActionResult GetPatientById(int id)
        {
            var patient = patientRepo.GetPatient(id);

            if (patient != null)
            {
                return(Ok(patient));
            }
            return(NotFound());
        }
Exemplo n.º 2
0
        public List <Patient> GetPatient(int pId)
        {
            var patient = _patientData.GetPatient(pId);

            return(patient);
        }
Exemplo n.º 3
0
 /// <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));
 }