private async Task <bool> CreateUser(long id) { await Task.Yield(); var newUser = new PersistedUser { Id = (int)id, RegisterationData = new RegisterationData { Type = UserType.Guest } }; return(users.TryAdd(id, newUser)); }
private void UpdateUser(long id, PersistedUser user) { users[id] = user; }