AppActs.Client.Service.UserService.UpdatePassword C# (CSharp) Method

UpdatePassword() public method

public UpdatePassword ( ObjectId userId, string password ) : void
userId ObjectId
password string
return void
        public void UpdatePassword(ObjectId userId, string password)
        {
            try
            {
                password = DES.Encrypt(
                        this.settings.SecurityKey,
                        SHA2.GetSHA256Hash(password)
                    );

                this.accountUserRepository.UpdatePassword(userId, password);
            }
            catch (DataAccessLayerException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new ServiceLayerException(ex);
            }
        }