/// <summary>
        /// GET /products/{guid}
        /// </summary>
        public ProductResponse Get(Product product)
        {
            ProductModel p = ProductRepository.GetById(product.Guid);

            return(new ProductResponse
            {
                Product = p.ToProduct()
            });
        }
Esempio n. 2
0
 public IActionResult Get(int id)
 {
     return(Ok(_repository.GetById(id)));
 }