Example #1
0
 public Product(int id, string sku, int categoryId, string description, string smallImagePath, string largeImagePath,
                decimal price, ProductStatusEnum status)
 {
     Id             = id;
     SKU            = sku;
     CategoryId     = categoryId;
     Description    = description;
     SmallImagePath = smallImagePath;
     LargeImagePath = largeImagePath;
     Price          = price;
     Status         = status;
 }
Example #2
0
 internal ProductStatus(ProductStatusEnum statusCode, string reason)
 {
     Code          = statusCode;
     ChangesReason = reason != null?reason.Trim() : string.Empty;
 }
Example #3
0
 public ProductStatus(ProductStatusEnum statusCode, string reason)
 {
     this.StatusCode         = statusCode;
     this.ChangeStatusReason = reason ?? reason.Trim();
 }
Example #4
0
 public ProductStatus(ProductStatusEnum status, string reason)
 {
     this.Status             = status;
     this.ChangeStatusReason = reason;
 }