public IActionResult PostTodoItem(int id, [FromBody] TodoItem todo)
        {
            if (todo == null || !ModelState.IsValid || !repository.CheckIfExists(id))
            {
                return(BadRequest());
            }

            repository.AddTodoItem(id, todo);

            return(CreatedAtAction("Get", new { id = todo.NoteId }, todo));
        }