ASP.net Core RC2 Web API POST - When to use Create, CreatedAtAction, vs. CreatedAtRoute?
What are the fundamental differences of those functions? All I know is all three result in a 201, which is appropriate for a successful POST request. I only follow examples I see online, but they don't really explain why they're doing what they're doing. We're supposed to provide a name for our GET (1 record by id): [HttpGet("{id}", Name="MyStuff")] public async Task<IActionResult> GetAsync(int id) { return new ObjectResult(new MyStuff(id)); } What is the purpose of naming this get function, besides that it's "probably" required for the POST function below: [HttpPost] public async Task