/// <summary> /// Constructor with a Product object /// </summary> /// <param name="product">The Product object</param> public GetProductResponse(Product product) { if (product != null) { this.Code = 200; this.Message = null; this.Data = new ProductData(product); } else { this.Code = 404; this.Message = "Not found"; this.Data = null; } }
/// <summary> /// Constructor with a Product object /// </summary> /// <param name="product"></param> public ProductData(Product product) { this.Product = product; }