private static void AddWitnessToOwner(Account owner, Account witness) { var ownerWitness = new OwnerWitness(owner.Id, witness.Id); Current.Connection.Insert(ownerWitness); }
private static void SendInvitation(string ownerFullName, Account witness, string message) { var mailer = new DefaultMailer(); var msg = mailer.CreateAccountWitnessInvitation(witness.Email, witness.Id, witness.FirstName, ownerFullName, message); msg.Send(); }