Esempio n. 1
0
        public async Task <IActionResult> Scheduling(BotSchedule botSchedule)
        {
            if (ModelState.IsValid)
            {
                _context.Add(botSchedule);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(botSchedule));
        }
Esempio n. 2
0
        public async Task <IActionResult> Create(BotQuestions botQuestions)
        {
            if (ModelState.IsValid)
            {
                _context.Add(botQuestions);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(botQuestions));
        }