public EAuthenticationStatus Register(String login, SecureString password)
 {
     try
     {
         _registrationClient.Register(login, SEncryptor.GetSHA256Hash(password));
     }
     catch (Exception e) //TODO: Add another exception handling
     {
         return(EAuthenticationStatus.None);
     }
     return(EAuthenticationStatus.Authenticated);
 }
        public EAuthenticationStatus Authenticate(String login, SecureString password)
        {
            try
            {
                _client.ClientCredentials.UserName.UserName = login;
                _client.ClientCredentials.UserName.Password = SEncryptor.GetSHA256Hash(password);
                _client.GetCurrentUser();
            }
            catch (Exception e) //TODO: Add exception handling
            {
            }

            return(EAuthenticationStatus.Authenticated);
        }