Пример #1
0
        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));
        }
Пример #2
0
 private string GetTitle(TestReadOnlyVM model)
 {
     return("Тест " + StringUtils.AngleBrackets(model.Test.Name));
 }