Rebel.Cms.Web.PackageExtensions.IsInstalled C# (CSharp) Method

IsInstalled() public static method

public static IsInstalled ( this package, IPackageRepository repo ) : bool
package this
repo IPackageRepository
return bool
        public static bool IsInstalled(this IPackageMetadata package, IPackageRepository repo)
        {
            if (package != null && package.Id != null)
                return repo.FindPackage(package.Id) != null;
            return false;
        }
PackageExtensions