Пример #1
0
		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();
			}
		}
Пример #2
0
		public AppraiserUserQCViewModel()
		{
			ScoreHistory = new AppraiserScoreHistoryViewModel();
			ScoreNotes = new List<AppraiserScoreNoteItemViewModel>();
			DocumentAudit = new AppraiserQCDocumentAuditViewModel();
		}