|  |  |  | @ -19,32 +19,11 @@ namespace DamageAssesment.Api.Questions.Providers | 
		
	
		
			
				|  |  |  |  |             this.questionDbContext = questionDbContext; | 
		
	
		
			
				|  |  |  |  |             this.logger = logger; | 
		
	
		
			
				|  |  |  |  |             this.mapper = mapper; | 
		
	
		
			
				|  |  |  |  |             SeedData(); | 
		
	
		
			
				|  |  |  |  |            // SeedData(); | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |         public void SeedData() | 
		
	
		
			
				|  |  |  |  |         { | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.QuestionsTranslations.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 1, QuestionText = "Can You Open ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 1, QuestionText = "Peux-tu ouvrir ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 2, QuestionText = "Are the grounds flodded ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 2, QuestionText = "Les terrains sont-ils inondés ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { Id = 5, QuestionId = 3, QuestionText = "Is the access blocked by flooding ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { Id = 6, QuestionId = 3, QuestionText = "L'accès est-il bloqué par les inondations ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { Id = 7, QuestionId = 1, QuestionText = "Puedes abrir ?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { Id = 8, QuestionId = 2, QuestionText = "¿Están inundados los terrenos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { Id = 9, QuestionId = 3, QuestionText = "¿El acceso está bloqueado por inundaciones?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.SaveChanges(); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.Questions.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(new Db.Question() { QuestionTypeId = 2, SurveyId = 1, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId=1 }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(new Db.Question() { QuestionTypeId = 1, SurveyId = 1, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false,  CategoryId = 1 }); | 
		
	
		
			
				|  |  |  |  |                 //questionDbContext.Questions.Add(new Db.Question() { Id = 3,  QuestionTypeId = 1, SurveyId = 1, QuestionNumber = 3, IsRequired = true, Comment = false, Key = true,  CategoryId = 2 }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.SaveChanges(); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.QuestionTypes.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionTypes.Add(new Db.QuestionType() { TypeText = "RadioButton" }); | 
		
	
	
		
			
				
					
					|  |  |  | @ -55,7 +34,7 @@ namespace DamageAssesment.Api.Questions.Providers | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.QuestionCategories.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionCategories.Add(new Db.QuestionCategory() { IconName = "Flooding", IconLibrary= "https://example.com/images/img1.png" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionCategories.Add(new Db.QuestionCategory() { IconName = "Flooding", IconLibrary = "https://example.com/images/img1.png" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionCategories.Add(new Db.QuestionCategory() { IconName = "Electrical", IconLibrary = "https://example.com/images/img2.png" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionCategories.Add(new Db.QuestionCategory() { IconName = "Structural", IconLibrary = "https://example.com/images/img3.png" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionCategories.Add(new Db.QuestionCategory() { IconName = "Utility", IconLibrary = "https://example.com/images/img4.png" }); | 
		
	
	
		
			
				
					
					|  |  |  | @ -65,7 +44,6 @@ namespace DamageAssesment.Api.Questions.Providers | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.CategoryTranslations.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.CategoryTranslations.Add(new Db.CategoryTranslation() { CategoryId = 1, Title = "Flooding", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.CategoryTranslations.Add(new Db.CategoryTranslation() { CategoryId = 2, Title = "Electrical", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.CategoryTranslations.Add(new Db.CategoryTranslation() { CategoryId = 3, Title = "Structural", Language = "en" }); | 
		
	
	
		
			
				
					
					|  |  |  | @ -83,6 +61,132 @@ namespace DamageAssesment.Api.Questions.Providers | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.CategoryTranslations.Add(new Db.CategoryTranslation() { CategoryId = 5, Title = "Escombros", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.SaveChanges(); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.Questions.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 var question1 = new Db.Question() { QuestionTypeId = 1, SurveyId = 1, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question2 = new Db.Question() { QuestionTypeId = 1, SurveyId = 1, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question3 = new Db.Question() { QuestionTypeId = 1, SurveyId = 2, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question4 = new Db.Question() { QuestionTypeId = 1, SurveyId = 2, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question5 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question6 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question7 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 3}; | 
		
	
		
			
				|  |  |  |  |                 var question8 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 4 }; | 
		
	
		
			
				|  |  |  |  |                 var question9 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = true, Key = true, CategoryId = 5 }; | 
		
	
		
			
				|  |  |  |  |                 var question10 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = false, Key = true, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question11 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = false, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question12 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = true, CategoryId = 3 }; | 
		
	
		
			
				|  |  |  |  |                 var question13 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 4 }; | 
		
	
		
			
				|  |  |  |  |                 var question14 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 5 }; | 
		
	
		
			
				|  |  |  |  |                 var question15 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = false, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question16 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = true, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question17 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = false, CategoryId = 3 }; | 
		
	
		
			
				|  |  |  |  |                 var question18 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 4 }; | 
		
	
		
			
				|  |  |  |  |                 var question19 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 5 }; | 
		
	
		
			
				|  |  |  |  |                 var question20 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = false, CategoryId = 1 }; | 
		
	
		
			
				|  |  |  |  |                 var question21 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 1, IsRequired = true, Comment = false, Key = true, CategoryId = 2 }; | 
		
	
		
			
				|  |  |  |  |                 var question22 = new Db.Question() { QuestionTypeId = 1, SurveyId = 3, QuestionNumber = 2, IsRequired = false, Comment = true, Key = true, CategoryId = 3 }; | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question1); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question2); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question3); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question4); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question5); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question6); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question7); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question8); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question9); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question10); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question11); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question12); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question13); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question14); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question15); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question16); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question17); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question18); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question19); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question20); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question21); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.Questions.Add(question22); | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.SaveChanges(); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |             if (!questionDbContext.QuestionsTranslations.Any()) | 
		
	
		
			
				|  |  |  |  |             { | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 1, QuestionText = "Can You Open ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 1, QuestionText = "Peux-tu ouvrir ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 1, QuestionText = "Puedes abrir ?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 2, QuestionText = "Are the grounds flooded ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 2, QuestionText = "Les terrains sont-ils inondés ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 2, QuestionText = "¿Están inundados los terrenos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 3, QuestionText = "Is the access blocked by flooding ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 3, QuestionText = "L'accès est-il bloqué par les inondations ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 3, QuestionText = "¿El acceso está bloqueado por inundaciones?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 4, QuestionText = "Are the grounds flooded ?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 4, QuestionText = "Les terrains sont-ils inondés ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 4, QuestionText = "¿Están inundados los terrenos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 5, QuestionText = "Can you open?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 6, QuestionText = "Is debris blocking access?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 7, QuestionText = "Are the grounds flooded?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 8, QuestionText = "Is the access blocked by flooding?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 9, QuestionText = "Are any utility wires down?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 10, QuestionText = "Do you have damage to windows, doors, or walls?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 11, QuestionText = "Do you have roof damage?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 12, QuestionText = "Do you have major water intrusion?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 13, QuestionText = "Are any portable classrooms damaged and unusable?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 14, QuestionText = "Does your facility need to be secured/boarded?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 15, QuestionText = "Are you without commercial power?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 16, QuestionText = "Are you without water pressure?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 17, QuestionText = "Are you without telephones?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 18, QuestionText = "Are traffic signals damaged/missing?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 19, QuestionText = "Are you without an operable fire alarm?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 20, QuestionText = "Are you without an operable public address?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 21, QuestionText = "Do you have major debris?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 22, QuestionText = "Are there any problems or issues not addressed above that would impede you from opening? If yes, please explain below?", Language = "en" }); | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 5, QuestionText = "Pouvez-vous ouvrir ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 6, QuestionText = "Est-ce que des débris bloquent l'accès ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 7, QuestionText = "Les terrains sont-ils inondés ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 8, QuestionText = "L'accès est-il bloqué par des inondations ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 9, QuestionText = "Des câbles d'utilité sont-ils tombés ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 10, QuestionText = "Avez-vous des dommages aux fenêtres, portes ou murs ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 11, QuestionText = "Avez-vous des dommages au toit ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 12, QuestionText = "Avez-vous une intrusion d'eau majeure ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 13, QuestionText = "Les salles de classe portables sont-elles endommagées et inutilisables ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 14, QuestionText = "Votre établissement a-t-il besoin d'être sécurisé/protégé ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 15, QuestionText = "Êtes-vous sans alimentation électrique commerciale ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 16, QuestionText = "Êtes-vous sans pression d'eau ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 17, QuestionText = "Êtes-vous sans téléphones ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 18, QuestionText = "Les feux de circulation sont-ils endommagés/absents ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 19, QuestionText = "N'avez-vous pas d'alarme incendie fonctionnelle ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 20, QuestionText = "N'avez-vous pas de système de sonorisation opérationnel ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 21, QuestionText = "Avez-vous une grande quantité de débris ?", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 22, QuestionText = "Y a-t-il des problèmes ou des problèmes non abordés ci-dessus qui vous empêcheraient d'ouvrir ? Si oui, veuillez expliquer ci-dessous.", Language = "fr" }); | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 5, QuestionText = "¿Puedes abrir ?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 6, QuestionText = "¿Los escombros bloquean el acceso?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 7, QuestionText = "¿Están inundados los terrenos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 8, QuestionText = "¿El acceso está bloqueado por inundaciones?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 9, QuestionText = "¿Hay cables de utilidad caídos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 10, QuestionText = "¿Tienes daños en ventanas, puertas o paredes?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 11, QuestionText = "¿Tienes daños en el techo?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 12, QuestionText = "¿Tienes una gran intrusión de agua?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 13, QuestionText = "¿Hay aulas portátiles dañadas e inutilizables?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 14, QuestionText = "¿Tu instalación necesita ser asegurada/tabicada?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 15, QuestionText = "¿No tienes energía comercial?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 16, QuestionText = "¿No tienes presión de agua?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 17, QuestionText = "¿No tienes teléfonos?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 18, QuestionText = "¿Los semáforos están dañados/faltan?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 19, QuestionText = "¿No tienes una alarma de incendios operativa?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 20, QuestionText = "¿No tienes un sistema de megafonía operativo?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 21, QuestionText = "¿Tienes una gran cantidad de escombros?", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.QuestionsTranslations.Add(new Db.QuestionsTranslation() { QuestionId = 22, QuestionText = "¿Hay algún problema o asunto no abordado anteriormente que le impida abrir? Si es así, por favor explíquelo a continuación.", Language = "es" }); | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |                 questionDbContext.SaveChanges(); | 
		
	
		
			
				|  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |         } | 
		
	
		
			
				|  |  |  |  |  | 
		
	
		
			
				|  |  |  |  |         public List<Models.CategoryTranslation> GetCategoryTranslations(int id, string? language) | 
		
	
	
		
			
				
					
					|  |  |  | @ -210,6 +314,7 @@ namespace DamageAssesment.Api.Questions.Providers | 
		
	
		
			
				|  |  |  |  |                             CategoryId = item.Id, | 
		
	
		
			
				|  |  |  |  |                             IconLibrary = item.IconLibrary, | 
		
	
		
			
				|  |  |  |  |                             IconName = item.IconName, | 
		
	
		
			
				|  |  |  |  |                             CategoryNames= CreateCategoryMultiLanguageObject(GetCategoryTranslations(item.Id, language)), | 
		
	
		
			
				|  |  |  |  |                             QuestionsText = GetSurveyQuestion(mapper.Map<List<Db.Question>, List<Models.MultiLanguage>>(questions.Where(a => a.CategoryId == item.Id).ToList()), language) | 
		
	
		
			
				|  |  |  |  |                         }); | 
		
	
		
			
				|  |  |  |  |                     } | 
		
	
	
		
			
				
					
					|  |  |  | 
 |