public async Task <ActionResult <Todo> > PostTodo(CreatedTodoDTO todo)
        {
            if (ModelState.IsValid)
            {
                return(BadRequest());
            }

            var t = await _service.Create(todo);

            return(Ok(t));
        }
        public async Task <ActionResult <Todo> > PostTodo(CreateToDoDTO todo)
        {
            if (ModelState.IsValid)
            {
                var t = await _service.Create(todo);

                //placeholder. to be replaced
                t.UserId = 1;
                return(Ok(t));
            }
            else
            {
                return(BadRequest());
            }
        }