Exemple #1
0
        public IActionResult Create([FromBody] TodoItem item)
        {
            if (item == null)
            {
                return(BadRequest());
            }

            _itemService.CreateItem(item);

            return(CreatedAtRoute("GetTodo", new { id = item.Id }, item));
        }