public ActionResult ViewTest(int?id) { var test = TestService.GetFullTest(id.Value); ViewTestPermission(test); var model = new TestReadOnlyVM { Test = test, Modules = TestModuleService.GetForTest(id.Value).ToList(), Checker = EmployeeService.AllEmployees().GetValueOrDefault(test.Checker_TC) }; return(BaseViewWithModel(new TestReadOnlyView(), model)); }
private string GetTitle(TestReadOnlyVM model) { return("Тест " + StringUtils.AngleBrackets(model.Test.Name)); }