Exemplo n.º 1
0
 /// <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;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor with a Product object
 /// </summary>
 /// <param name="product"></param>
 public ProductData(Product product)
 {
     this.Product = product;
 }