Update sample2.cs (#5229)
The method signature was wrong for GetAllProducts and GetProductById .. Correcting to return the correct resultspull/5233/head
parent
fcc7df792a
commit
71a0c077a2
|
@ -1,6 +1,6 @@
|
||||||
public class ProductsController : ApiController
|
public class ProductsController : ApiController
|
||||||
{
|
{
|
||||||
public void GetAllProducts() { }
|
public IEnumerable<Product> GetAllProducts() { }
|
||||||
public IEnumerable<Product> GetProductById(int id) { }
|
public Product GetProductById(int id) { }
|
||||||
public HttpResponseMessage DeleteProduct(int id){ }
|
public HttpResponseMessage DeleteProduct(int id){ }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue