public static int InstallApplication(InstallationInfo inst)
        {
            // check account
            int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive);
            if (accountCheck < 0) return accountCheck;

            // check package
            int packageCheck = SecurityContext.CheckPackage(inst.PackageId, DemandPackage.IsActive);
            if (packageCheck < 0) return packageCheck;

            // install application
            WebApplicationsInstaller installer = new WebApplicationsInstaller();
            return installer.InstallWebApplication(inst);
        }
 public List <ApplicationInfo> GetApplications(int packageId, string categoryId)
 {
     return(WebApplicationsInstaller.GetApplications(packageId, categoryId));
 }
 public int InstallApplication(InstallationInfo inst)
 {
     return(WebApplicationsInstaller.InstallApplication(inst));
 }