Exemple #1
0
        internal void UpdateUserAuthentication(Models.UserAuthentication userAuthentication)
        {
            var userAuthEntity = _rawrzMeEntities.user_authentication.First(ua => ua.id == userAuthentication.Id);

            userAuthEntity.salt = userAuthentication.Salt;
            userAuthEntity.hash = userAuthentication.Hash;
            _rawrzMeEntities.SaveChanges();
        }
Exemple #2
0
        internal void CreateUserAuthentication(Models.UserAuthentication userAuthentication)
        {
            var newUserAuthEntity = new user_authentication
            {
                salt    = userAuthentication.Salt,
                hash    = userAuthentication.Hash,
                user_id = userAuthentication.UserId
            };

            _rawrzMeEntities.user_authentication.Add(newUserAuthEntity);
            _rawrzMeEntities.SaveChanges();
        }