Update sample2.cs (#5229)

The method signature was wrong for GetAllProducts and GetProductById .. Correcting to return the correct results
pull/5233/head
Mark Dykun 2018-01-20 21:28:11 -05:00 committed by Rick Anderson
parent fcc7df792a
commit 71a0c077a2
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
public class ProductsController : ApiController
{
public void GetAllProducts() { }
public IEnumerable<Product> GetProductById(int id) { }
public IEnumerable<Product> GetAllProducts() { }
public Product GetProductById(int id) { }
public HttpResponseMessage DeleteProduct(int id){ }
}