/// <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)))); }
/// <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))); }