private static async Task <UserEntity> CreateUserProfile(UserPostData daten, DatabaseContext context) { UserEntity newUser = new UserEntity(); newUser.CopyPropertiesFrom(daten); newUser.Nickname = newUser.Nickname ?? newUser.Username; await context.ShakeUser.AddAsync(newUser); return(newUser); }