Adding HasCookieValue back to StateHelper and marking it obsolete

This commit is contained in:
hartvig
2011-03-02 13:50:29 -01:00
parent ea30785baf
commit 45ee50ed0f

View File

@@ -197,6 +197,21 @@ namespace umbraco.BusinessLogic
#region Cookie Helpers
/// <summary>
/// Determines whether a cookie has a value with a specified key.
/// </summary>
/// <param name="key">The key.</param>
/// <returns>
/// <c>true</c> if the cookie has a value with the specified key; otherwise, <c>false</c>.
/// </returns>
[Obsolete("Use !string.IsNullOrEmpty(GetCookieValue(key))", false)]
public static bool HasCookieValue(string key)
{
return !string.IsNullOrEmpty(GetCookieValue(key));
}
/// <summary>
/// Gets the cookie value.
/// </summary>