예제 #1
0
 public static bool HasPriorVersionLicense(this SueetieUser _user, ProductPackage _productPackage, ProductLicenseType _productLicenseType)
 {
     return(Licenses.GetProductLicenseList().Any <ProductLicense>(l => ((((l.PackageTypeID == _productPackage.PackageTypeID) && (l.LicenseTypeID >= (int)_productLicenseType)) && (l.MajorVersion < _productPackage.MajorVersion)) && (l.UserID == _user.UserID))));
 }
예제 #2
0
 public static bool HasFreeLicenseOfCurrentVersion(this SueetieUser _user, ProductPackage _productPackage)
 {
     return(Licenses.GetProductLicenseList().Any <ProductLicense>(l => ((((l.PackageTypeID == _productPackage.PackageTypeID) && (l.LicenseTypeID == 1)) && (l.MajorVersion == _productPackage.MajorVersion)) && (l.UserID == _user.UserID))));
 }