示例#1
0
        public async Task <ActionResult <User> > PostTodoItem(User user)
        {
            _context.Users.Add(user);
            await _context.SaveChangesAsync();

            var users = _context.Users.ToList();

            return(Ok());
        }
示例#2
0
        public async Task <ActionResult <Question> > PostTodoItem(Question question)
        {
            _context.Questions.Add(question);
            await _context.SaveChangesAsync();

            var users = _context.Users.ToList();

            return(Ok());
        }