예제 #1
0
        public async Task <ActionResult <int> > Create(TodoElement todo)
        {
            try
            {
                int result = await sqlService.Create(todo);

                return(todo.Id);
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }