public void Update(AccountRelationship accountRelationship)
        {
            Entities.AccountRelationship entity = m_dbContext.AccountRelationships
                                                  .Single(ar => ar.AccountRelationshipId == accountRelationship.AccountRelationshipId);

            entity.SourceAccountId      = accountRelationship.SourceAccount.AccountId;
            entity.DestinationAccountId = accountRelationship.DestinationAccount.AccountId;
            entity.Type = accountRelationship.Type;

            m_dbContext.SaveChanges();
        }
        public void Create(AccountRelationship accountRelationship)
        {
            var entity = new Entities.AccountRelationship
            {
                SourceAccountId      = accountRelationship.SourceAccount.AccountId,
                DestinationAccountId = accountRelationship.DestinationAccount.AccountId,
                Type = accountRelationship.Type
            };

            m_dbContext.AccountRelationships.Add(entity);
            m_dbContext.SaveChanges();

            accountRelationship.AccountRelationshipId = entity.AccountRelationshipId;
        }