public async Task <IActionResult> Post([FromBody] TodoBag value) { var todo = Todo.CreateFrom(value); _context.Add(todo); await _context.SaveChangesAsync(); return(CreatedAtAction("Get", new { id = todo.Id }, todo)); }