using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace WebApi2.Controller { public class HelloController : ApiController { public string Get(int id) { if (id == 1) { return "Hello"; } else { return "Hello World"; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)