protected virtual void OnPressBlockButton(string userId, bool blockUser) { FriendEntryBase friendEntryToBlock = GetEntry(userId); if (friendEntryToBlock != null) { friendEntryToBlock.model.blocked = blockUser; friendEntryToBlock.Populate(friendEntryToBlock.model); } }
protected virtual void OnPressBlockButton(FriendEntryBase entry) { entry.model.blocked = !entry.model.blocked; entry.Populate(entry.model); }