public async Task <ActionResult <User> > PostTodoItem(User user) { _context.Users.Add(user); await _context.SaveChangesAsync(); var users = _context.Users.ToList(); return(Ok()); }
public async Task <ActionResult <Question> > PostTodoItem(Question question) { _context.Questions.Add(question); await _context.SaveChangesAsync(); var users = _context.Users.ToList(); return(Ok()); }