Skip to content

Instantly share code, notes, and snippets.

Created September 27, 2016 16:18
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
namespace AspNetCore.Mvc.AttributeRouting.Demo.Controllers
public class ValuesController : Controller
public IEnumerable<string> GetMoreStuff()
return new string[] { "value3", "value4" };
// 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