Exemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] TodoListItem list)
        {
            await _listService.AddTodoListAsync(list, HttpContext.RequestAborted);

            return(CreatedAtAction(nameof(GetById), new { id = list.Id }, list));
        }