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