private ChatUser Bind(ChatUser user) { if (StatsDatabase.ConnectionState != ConnectionState.Open) { return(user); } var dbUser = StatsDatabase.UpsertUser(user); user.BindDbUser(dbUser); return(user); }