Skip to content

Instantly share code, notes, and snippets.



Last active Sep 27, 2016
What would you like to do?
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
namespace AspNetCore.Mvc.AttributeRouting.Demo.Controllers
public class ValuesController : Controller
// GET api/values
public IEnumerable<string> Get()
return new string[] { "value1", "value2" };
// GET api/values/5
public string Get(int id)
return "value";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment