Beispiel #1
0
        public AuthModel UpdateUser(AuthModel authModel, Dictionary <string, string> userDictionary)
        {
            System.Console.WriteLine("update logic: dictionary:");
            System.Console.WriteLine(userDictionary);
            User      user = authModel.GetMappedUser();
            AuthModel model;

            if (_repo.DoesUserExist(userDictionary["sub"]))
            {
                // AuthModel.GetFromUser(_repo.UpdateUserData(authModel, userDictionary, out model));
                UpdateUserData(authModel, userDictionary, out model, false);
            }
            else
            {
                UpdateUserData(authModel, userDictionary, out model);
            }
            return(model);
        }