public ActionResult ResultEdit(int?ID) { if (!ID.HasValue) { return(RedirectToAction("ResultList")); } ResultDetailsDataModel model = new ResultDetailsDataModel(); using (var module = new ResultModule()) { model = module.DoGetDetailsByID((int)ID); } return(View(model)); }
public ActionResult Content(int?ID) { if (!ID.HasValue) { return(RedirectToAction("ResultList")); } ResultDetailsDataModel model = new ResultDetailsDataModel(); using (var module = new ResultModule()) { model = module.DoGetDetailsByID((int)ID); if (model.Data == null) { return(RedirectToAction("List")); } model.Data.CONTENT = HttpUtility.HtmlDecode(model.Data.CONTENT); } return(View(model)); }