public static CompleteFireRiskAssessmentChecklistRequest CreateCompleteRequest(this FireRiskAssessmentChecklistViewModel viewModel, CustomPrincipal user)
 {
     var request = new CompleteFireRiskAssessmentChecklistRequest
                       {
                           FireRiskAssessmentId = viewModel.RiskAssessmentId,
                           CompanyId = viewModel.CompanyId,
                           Answers = viewModel.CreateFireAnswerRequests(),
                           CurrentUserId = user.UserId
                       };
     return request;
 }
        public void CompleteFireRiskAssessmentChecklist(CompleteFireRiskAssessmentChecklistRequest request)
        {
            _log.Add(request);

            var fireRiskAssessment = _fireRiskAssessmentRepository.GetById(request.FireRiskAssessmentId);
            var currentUser = _auditedUserRepository.GetByIdAndCompanyId(request.CurrentUserId, request.CompanyId);

            var submitAnswerParameterClasses = CreateSubmitAnswerParameters(request.Answers);

            fireRiskAssessment.CompleteFireRiskAssessmentChecklist(submitAnswerParameterClasses, currentUser);
            _fireRiskAssessmentRepository.Save(fireRiskAssessment);
        }