Exemple #1
0
 public virtual void RemoveProduct(UserOwnedProductModel mdl)
 {
     OwnedProducts.Remove(mdl);
     if (DBContext != null)
     {
         DBContext.OwnedProducts.Remove(mdl);
     }
 }
Exemple #2
0
 public virtual void AddProduct(UserOwnedProductModel mdl)
 {
     mdl.Owner = this;
     OwnedProducts.Add(mdl);
     if (DBContext != null)
     {
         DBContext.OwnedProducts.Add(mdl);
     }
 }
Exemple #3
0
 public UserOwnedProductResponseModel(UserOwnedProductModel mdl, bool showKey = false)
 {
     RedemptionDate = mdl.RedemptionDate;
     ProductId      = mdl.ProductId;
     ProductName    = mdl.ProductName;
     EditionId      = mdl.EditionId;
     EditionName    = mdl.EditionName;
     DisplayName    = mdl.DisplayName;
     if (showKey)
     {
         ProductKey = mdl.ProductKey;
     }
 }