/// <summary> /// GET /products/{guid} /// </summary> public ProductResponse Get(Product product) { ProductModel p = ProductRepository.GetById(product.Guid); return(new ProductResponse { Product = p.ToProduct() }); }
public IActionResult Get(int id) { return(Ok(_repository.GetById(id))); }