Beispiel #1
0
        private User HelpMethodForUpsert(User existing, RegisterPostModel modifiedUser, User connectedUser)
        {
            User updated = RegisterPostModel.ToUpdateUser(existing, modifiedUser, connectedUser);

            context.Users.Update(updated);
            context.SaveChanges();
            return(updated);
        }