public static Patient GetPatient(int id)
        {
            ServicePatientClient servicePatient = new ServicePatientClient();

            try
            {
                return servicePatient.GetPatient(id);
            }
            catch (Exception)
            {
                return null;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Call WCF GetPatient function
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Patient GetPatient(int id)
 {
     return(_service.GetPatient(id));
 }