Chronozoom.UI.DefaultHttpHandler.IsSuperCollectionPresent C# (CSharp) Method

IsSuperCollectionPresent() public static method

Validates if a supercollection is present.
public static IsSuperCollectionPresent ( string superCollection ) : bool
superCollection string
return bool
        public static bool IsSuperCollectionPresent(string superCollection)
        {
            string _superCollection = FriendlyUrl.FriendlyUrlDecode( superCollection);
            if (_storage.SuperCollections.Any(candidate => candidate.Title.ToLower() == _superCollection ))
            {
                return true;
            }
            else
            {
                HttpContext.Current.Response.Redirect("/");
                return false;
            }
        }