private static OrganisationPerson CreateUnsavedOrganisationPerson(Person person, Organisation organisation)
 {
     OrganisationPerson organisationPerson = new OrganisationPerson();
     organisationPerson.Person = person;
     organisationPerson.Organisation = organisation;
     return organisationPerson;
 }
 public static OrganisationPerson CreateSavedOrganisationPerson(Person person, Organisation organisation)
 {
     OrganisationPerson organisationPerson = CreateUnsavedOrganisationPerson(person, organisation);
     organisationPerson.Save();
     return organisationPerson;
 }
Exemple #3
0
 private static Organisation CreateUnsavedOrganisation(string name)
 {
     Organisation organisation = new Organisation();
     organisation.Name = name;
     return organisation;
 }