public ActionResult Post(ArpsAward arpsAward) { var arpsAwardFromSession = SessionHelper.ArpsAward; if (arpsAwardFromSession.Phase != AwardPhase.Initiator) { return(new HttpUnauthorizedResult()); } arpsAward = arpsAward.RunRuleSet <ArpsAward>(new InitiatorRuleSet()); SessionHelper.ArpsAward = arpsAward; return(RedirectToAction(arpsAward.ViewName, arpsAward)); }
public ActionResult Post(ArpsAward arpsAward, string button) { arpsAward.Phase = SessionHelper.ArpsAward.Phase; if (arpsAward.Phase != AwardPhase.DivisionDirector) { return(new HttpUnauthorizedResult()); } arpsAward.UserSelection = button; arpsAward = arpsAward.RunRuleSet <ArpsAward>(new DivisionDirectorRuleSet()); SessionHelper.ArpsAward = arpsAward; return(RedirectToAction(arpsAward.ViewName, arpsAward)); }