예제 #1
0
        public ActionResult <TodoReadDto> Create(TodoCreateDto dto)
        {
            int userId = Convert.ToInt32(HttpContext.Items["id"]);

            TodoReadDto result = _service.Create(userId, dto);

            return(Ok(result));
        }
예제 #2
0
        public ActionResult <TodoReadDto> Get(int id)
        {
            TodoReadDto result = _service.Get(id);

            return(Ok(result));
        }