public async Task <IActionResult> Edit(long id, [Bind("Id,Controller,Action")] StepWorkFlowSet stepWorkFlowSet) { if (id != stepWorkFlowSet.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(stepWorkFlowSet); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!StepWorkFlowSetExists(stepWorkFlowSet.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(stepWorkFlowSet)); }
public async Task <IActionResult> Create([Bind("Id,Controller,Action")] StepWorkFlowSet stepWorkFlowSet) { if (ModelState.IsValid) { _context.Add(stepWorkFlowSet); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(stepWorkFlowSet)); }