コード例 #1
0
        public IActionResult GetPatientById(int id)
        {
            var patient = patientRepo.GetPatient(id);

            if (patient != null)
            {
                return(Ok(patient));
            }
            return(NotFound());
        }
コード例 #2
0
        public List <Patient> GetPatient(int pId)
        {
            var patient = _patientData.GetPatient(pId);

            return(patient);
        }
コード例 #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));
 }