public ActionResult Create(CreatingRiskAssessmentSummaryViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return View("Create", viewModel);
            }

            try
            {
                var riskAssessmentId = _personalRiskAssessmentService.CreateRiskAssessment(new CreatePersonalRiskAssessmentRequest
                {
                    CompanyId = CurrentUser.CompanyId,
                    Title = viewModel.Title,
                    Reference = viewModel.Reference,
                    UserId = CurrentUser.UserId
                });

                return RedirectToAction("Index", "Summary", new { riskAssessmentId = riskAssessmentId, companyId = CurrentUser.CompanyId });
            }
            catch (ValidationException validationException)
            {
                ModelState.AddValidationErrors(validationException);
                return View("Create", viewModel);
            }
        }
        public ActionResult Create()
        {
            var personalRiskAssessmentSummaryViewModel = new CreatingRiskAssessmentSummaryViewModel
            {
                CompanyId = CurrentUser.CompanyId
            };

            return View("Create", personalRiskAssessmentSummaryViewModel);
        }
        public JsonResult CreateFromChecklist(CreatingRiskAssessmentSummaryViewModel viewModel)
        {
            var result = Json(new { });

            if (ModelState.IsValid)
            {
                try
                {
                    var riskAssessmentId =
                        _personalRiskAssessmentService.CreateRiskAssessmentWithChecklist(
                            new CreateRiskAssessmentRequest
                                {
                                    CompanyId = CurrentUser.CompanyId,
                                    Title = viewModel.Title,
                                    Reference = viewModel.Reference,
                                    UserId = CurrentUser.UserId
                                }, viewModel.ChecklistId);
                    result =
                        Json(
                            new
                                {
                                    Success = true,
                                    riskAssessmentId,
                                    companyId = CurrentUser.CompanyId
                                });
                }
                catch (ValidationException validationException)
                {
                    ModelState.AddValidationErrors(validationException);
                    result = ModelStateErrorsAsJson();
                }
            }
            else
            {
                result = ModelStateErrorsAsJson();
            }

            return result;
        }