private string GetScoreHistoryAsString(AppraiserScoreHistoryViewModel model) { ViewData.Model = model; using (var sw = new StringWriter()) { var viewResult = ViewEngines.Engines.FindPartialView(ControllerContext, "AppraiserTabs/QCScoreHistoryTable"); var viewContext = new ViewContext(ControllerContext, viewResult.View, ViewData, TempData, sw); viewResult.View.Render(viewContext, sw); viewResult.ViewEngine.ReleaseView(ControllerContext, viewResult.View); return sw.GetStringBuilder().ToString(); } }
public AppraiserUserQCViewModel() { ScoreHistory = new AppraiserScoreHistoryViewModel(); ScoreNotes = new List<AppraiserScoreNoteItemViewModel>(); DocumentAudit = new AppraiserQCDocumentAuditViewModel(); }