partial void DeletePatientData(PatientData instance);
partial void InsertPatientData(PatientData instance);
partial void UpdatePatientData(PatientData instance);
public bool PatientRegistration(string healthInsuranceNo, string firstName, string lastName, int phoneNumber, string address, string email) { PatientData patient = new PatientData() { HealthInsuranceNo = healthInsuranceNo, FirstName = firstName, LastName = lastName, PhoneNumber = phoneNumber, Address = address, Email = email }; db.PatientDatas.InsertOnSubmit(patient); try { db.SubmitChanges(); } catch (Exception e) { throw new FaultException(e.Message); } return true; }