public async Task <IActionResult> Edit(int id, [Bind("TaskRunnerId,TaskRunnerName,ActiveYn,Status,MaxConcurrentTasks")] FrameworkTaskRunner frameworkTaskRunner) { if (id != frameworkTaskRunner.TaskRunnerId) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(frameworkTaskRunner); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FrameworkTaskRunnerExists(frameworkTaskRunner.TaskRunnerId)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(IndexDataTable))); } return(View(frameworkTaskRunner)); }
// GET: FrameworkTaskRunner/Create public IActionResult Create() { FrameworkTaskRunner frameworkTaskRunner = new FrameworkTaskRunner(); frameworkTaskRunner.ActiveYn = true; return(View(frameworkTaskRunner)); }
public async Task <IActionResult> Create([Bind("TaskRunnerId,TaskRunnerName,ActiveYn,Status,MaxConcurrentTasks")] FrameworkTaskRunner frameworkTaskRunner) { if (ModelState.IsValid) { _context.Add(frameworkTaskRunner); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(IndexDataTable))); } return(View(frameworkTaskRunner)); }