diff --git a/aspnet/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api/samples/sample2.cs b/aspnet/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api/samples/sample2.cs index 2bfa8c5f13..9809fab9e8 100644 --- a/aspnet/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api/samples/sample2.cs +++ b/aspnet/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api/samples/sample2.cs @@ -1,6 +1,6 @@ public class ProductsController : ApiController { - public void GetAllProducts() { } - public IEnumerable GetProductById(int id) { } + public IEnumerable GetAllProducts() { } + public Product GetProductById(int id) { } public HttpResponseMessage DeleteProduct(int id){ } -} \ No newline at end of file +}