public async Task <ActionResult> DeleteConfirmed(Guid id) { wfStepPath wfStepPath = await db.wfStepPath.FindAsync(id); db.wfStepPath.Remove(wfStepPath); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "id,FromStepCode,ToStepCode,wfCode,PathType")] wfStepPath wfStepPath) { if (ModelState.IsValid) { db.Entry(wfStepPath).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(wfStepPath)); }
public async Task <ActionResult> Create([Bind(Include = "id,FromStepCode,ToStepCode,wfCode,PathType")] wfStepPath wfStepPath) { if (ModelState.IsValid) { wfStepPath.id = Guid.NewGuid(); db.wfStepPath.Add(wfStepPath); await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(wfStepPath)); }
// GET: wfStepPaths/Delete/5 public async Task <ActionResult> Delete(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } wfStepPath wfStepPath = await db.wfStepPath.FindAsync(id); if (wfStepPath == null) { return(HttpNotFound()); } return(View(wfStepPath)); }