Пример #1
0
        private async Task CreateExamAndStart()
        {
            ValidationErrors = null;

            try
            {
                var studentOralExamId = await _examService.CreateOralExam(StudentOralExam);

                Context.RedirectToRoute("OralExamUpdate", new { Id = studentOralExamId });
            }
            catch (ValidationPropertyException vpe)
            {
                ValidationErrors = vpe.ErrorsList.ToList();
            }
            catch (ValidationException ve)
            {
                ValidationErrors = ve.Errors.ToList();
            }
        }