public ActionResult <TodoReadDto> Create(TodoCreateDto dto) { int userId = Convert.ToInt32(HttpContext.Items["id"]); TodoReadDto result = _service.Create(userId, dto); return(Ok(result)); }
public ActionResult <TodoReadDto> Get(int id) { TodoReadDto result = _service.Get(id); return(Ok(result)); }