public ActionResult Details(Int32 id) { ResultDAC.UpdateReadStatus(id, true); AnalysisResultDTO result = ResultDAC.GetResult(id); return(View(new InputDetailsModel() { InputMetaDataList = InputDAC.GetMetaDataList(result.AnalysisInputID), InputMessage = InputDAC.GetInputMessage(result.AnalysisInputID), AnalysisResult = result })); }
public ActionResult Rerun(int id) { AnalysisResultDTO currentResult = ResultDAC.GetResult(id); List <AnalysisResultDTO> results = Analyzer.RerunAnalysis(currentResult.AnalysisInputID, ContextManager.Current.SelectedAreaID.Value); if (results.Count(a => a.InformationTypeID == currentResult.InformationTypeID) > 0) { return(Index(results.Find(a => a.InformationTypeID == currentResult.InformationTypeID).InformationTypeID)); } else { return(Index(results[0].InformationTypeID)); } }