static void Main(string[] args) { ServicePatient servicePatient = new ServicePatient(); servicePatient.GeneratePatient(); servicePatient.PrintPatientsBase(); }
public PatientController() { servicePatient = new ServicePatient(); serviceUser = new ServiceUser(); serviceRDV = new ServiceRDV(); serviceVisite = new ServiceVisite(); }
public Patient(ServicePatient.Patient servicePatient) { this.Id = servicePatient.Id; this.Firstname = servicePatient.Firstname; this.Name = servicePatient.Name; this.Birthday = servicePatient.Birthday; this.Observations = servicePatient.Observations; this.ExtensionData = servicePatient.ExtensionData; }
public bool AddPatient(ServicePatient.Patient user) { try { using (ServicePatient.ServicePatientClient client = new ServicePatient.ServicePatientClient()) { return client.AddPatient(user); } } catch { throw new TimeoutException(); } }