public async Task <IActionResult> DeleteTodoItem(long id)
        {
            using (var repo = new TodoDAO(_context))
            {
                var todoItem = await repo.Find(id);

                if (todoItem == null)
                {
                    return(NotFound());
                }

                await repo.Delete(todoItem);

                return(NoContent());
            }
        }
        public async Task <ActionResult <TodoItem> > GetTodoItem(long id)
        {
            TodoItem result = null;

            using (var repo = new TodoDAO(_context))
            {
                result = await repo.Find(id);
            }

            if (result == null)
            {
                return(NotFound());
            }
            else
            {
                return(result);
            }
        }