Api.Encryption.Encryptor.EncryptAuthRequest C# (CSharp) Метод

EncryptAuthRequest() публичный статический Метод

public static EncryptAuthRequest ( AuthRequestViewModel auth ) : AuthRequestViewModel
auth Api.Models.AuthRequestViewModel
Результат Api.Models.AuthRequestViewModel
        public static AuthRequestViewModel EncryptAuthRequest(AuthRequestViewModel auth)
        {
            if (auth.UserName != null)
                auth.UserName = StringCipher.Encrypt(auth.UserName, EncryptKey);

            return auth;
        }