Last active
March 2, 2019 07:57
-
-
Save mvodep/be05d682fb090b67ee42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloWorldController : ApiController | |
{ | |
public IEnumerable<string> Get() | |
{ | |
return new[] { "hello", "world" }; | |
} | |
// [Route("api/{controller}/{id}")] | |
// [HttpGet] | |
public string Get(int id) | |
{ | |
return "hello world"; | |
} | |
public void Post([FromBody]string value) | |
{ } | |
public void Put(int id, [FromBody]string value) | |
{ } | |
public void Delete(int id) | |
{ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment