public void GetAssessmentSheetCity(AssessmentSheetViewModel data, DrivingCategory drivingCategory, ViewExamRegistration examRegistration, int id)
        {
            data.AllowedNegativePoints = drivingCategory.AllowedNegativePracticle;
            data.NotAppearOnTheExam = examRegistration.ExamRegistrationStatusId == 4;
            data.City = new List<AssessmentSheetPolygonCityViewModel>();

            if (drivingCategory.Category.Trim().Equals("А") || drivingCategory.Category.Trim().Equals("A1"))
            {
                CreateQuestionListPolygonCity(id, "А кат", data.City);
            }
            else
            {
                CreateQuestionListPolygonCity(id, "бр2", data.City);
            }
        }
        public void GetAssessmentSheetTheory(AssessmentSheetViewModel data, DrivingCategory drivingCategory, ViewExamRegistration examRegistration, int id)
        {
            data.AllowedNegativePoints = drivingCategory.AllowedNegativeTheory;
            data.NotAppearOnTheExam = examRegistration.ExamRegistrationStatusId == 4;
            data.Theory = new AssessmentSheetTheoryViewModel();

            if (db.Report.Any(a => a.ExamRegistrationId == id))
            {
                var existingReport = db.Report.First(f => f.ExamRegistrationId == id);
                data.Theory.NegativePoints = (int)existingReport.NegativePoints;
            }
            else
            {
                data.Theory.NegativePoints = 0;
            }
        }