Exemplo n.º 1
0
 /// <summary>
 /// Gets an encrypted API-key valid for 30 minutes.
 /// </summary>
 /// <param name="apiKey">The API-key</param>
 /// <returns>The ecnrypted key</returns>
 public IHtmlString APIKey(Guid apiKey)
 {
     return(new HtmlString(HttpUtility.UrlEncode(APIKeys.EncryptApiKey(apiKey))));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets an encrypted API-key valid for 30 minutes.
 /// </summary>
 /// <param name="apiKey">The API-key</param>
 /// <returns>The ecnrypted key</returns>
 public static string APIKey(this HtmlHelper helper, Guid apiKey)
 {
     return(HttpUtility.UrlEncode(APIKeys.EncryptApiKey(apiKey)));
 }