forked from MDCPS/DamageAssessment_Backend
		
	added muilti language return format for question categories for question by survey
This commit is contained in:
		| @ -5,6 +5,7 @@ | ||||
|         public int CategoryId { get; set; } | ||||
|         public string IconName { get; set; } | ||||
|         public string IconLibrary { get; set; } | ||||
|         public object CategoryNames { get; set; } | ||||
|         public List<MultiLanguage> QuestionsText { get; set; } | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -314,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) | ||||
|                         }); | ||||
|                     } | ||||
|  | ||||
| @ -1,8 +0,0 @@ | ||||
| { | ||||
|   "Logging": { | ||||
|     "LogLevel": { | ||||
|       "Default": "Information", | ||||
|       "Microsoft.AspNetCore": "Warning" | ||||
|     } | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user