public ActionResult Index() { if (session.ProjectID < 0) { return(RedirectToAction("Search", "ProposalInfo")); } ProjectService projs = new ProjectService(); OutComeStatement outcom = projs.GetOutComeStatements(session.ProjectID); if (outcom != null) { return(View(outcom)); } else { return(View()); } }
public ActionResult Index(OutComeStatement outcom, string sensitive) { //clean the outcome text. Leave only text, remove all word symbols and everything else. outcom.OutcomeR = CleanHtml(outcom.OutcomeR); if (sensitive == "on") { outcom.sensitive = true; } if (session.ProjectID < 0) { return(RedirectToAction("Search", "ProposalInfo")); } ProjectService projs = new ProjectService(); outcom.ProjectID = session.ProjectID; bool status = projs.UpdateOutComeStatements(outcom); return(RedirectToAction("Index")); }
public bool UpdateOutComeStatements(OutComeStatement outcome) { return(projrepository.UpdateOutComeStatements(outcome)); }