public ActionResult ApplicationSelection(RequestFlow requestflow) { if (ModelState.IsValid) { requestflow.FurthestStep = "ApplicationSelection"; // Filter based on activity requestflow.LastModified = DateTime.Now; db.Entry(requestflow).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("ApplicationSelection", new { id = requestflow.Id }); } return View(requestflow); }
public ActionResult Create(RequestFlow requestflow) { if (ModelState.IsValid) { db.RequestFlows.Add(requestflow); db.SaveChanges(); return RedirectToAction("Index"); } return View(requestflow); }
public ActionResult USOR(RequestFlow requestflow) { if (ModelState.IsValid) { requestflow.FurthestStep = "USOR"; var id = db.People.Where(a => a.DomainID == User.Identity.Name).Single().Id; requestflow.RequestorId = id; requestflow.SubmitterId = id; requestflow.MatchingPersonId = id; requestflow.LastModified = DateTime.Now; db.RequestFlows.Add(requestflow); db.SaveChanges(); return RedirectToAction("SpecialProcessing", new { id = requestflow.Id }); } return View(requestflow); }
public ActionResult SpecialProcessing(RequestFlow requestflow) { if (ModelState.IsValid) { RequestFlow currentRequestFlow = db.RequestFlows.Find(requestflow.Id); currentRequestFlow.FurthestStep = "SpecialProcessing"; currentRequestFlow.RequestPrivileged = requestflow.RequestPrivileged; currentRequestFlow.ChangedEmployer = requestflow.ChangedEmployer; currentRequestFlow.ChangedName = requestflow.ChangedName; currentRequestFlow.LastModified = DateTime.Now; db.Entry(currentRequestFlow).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("ProfileMatching", new { id = currentRequestFlow.Id }); } return View(requestflow); }
public ActionResult ProfileMatching(RequestFlow requestflow) { if (ModelState.IsValid) { RequestFlow currentRequestFlow = db.RequestFlows.Find(requestflow.Id); currentRequestFlow.FurthestStep = "ProfileMatching"; if (requestflow.MatchingPersonId != -1) currentRequestFlow.MatchingPersonId = requestflow.MatchingPersonId; currentRequestFlow.LastModified = DateTime.Now; db.Entry(currentRequestFlow).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("ApplicationSelection", new { id = currentRequestFlow.Id }); } return View(requestflow); }
public ActionResult Edit(RequestFlow requestflow) { if (ModelState.IsValid) { db.Entry(requestflow).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(requestflow); }