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; }
internal ProductStatus(ProductStatusEnum statusCode, string reason) { Code = statusCode; ChangesReason = reason != null?reason.Trim() : string.Empty; }
public ProductStatus(ProductStatusEnum statusCode, string reason) { this.StatusCode = statusCode; this.ChangeStatusReason = reason ?? reason.Trim(); }
public ProductStatus(ProductStatusEnum status, string reason) { this.Status = status; this.ChangeStatusReason = reason; }