public void AddFriend(long characterId) { CharacterRelationDTO addRelation = new CharacterRelationDTO { CharacterId = CharacterId, RelatedCharacterId = characterId, RelationType = CharacterRelationType.Friend }; DAOFactory.CharacterRelationDAO.InsertOrUpdate(ref addRelation); friends = DAOFactory.CharacterRelationDAO.GetFriends(CharacterId); }
public void AddBlacklisted(long characterId) { CharacterRelationDTO addRelation = new CharacterRelationDTO { CharacterId = CharacterId, RelatedCharacterId = characterId, RelationType = CharacterRelationType.Blocked }; DAOFactory.CharacterRelationDAO.InsertOrUpdate(ref addRelation); }