Skip to content

Instantly share code, notes, and snippets.

Created May 3, 2017 15:08
What would you like to do?
public IActionResult Create([FromBody] TodoItem item)
if (item == null)
return BadRequest();
return CreatedAtRoute("GetTodo", new { id = item.Key }, item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment