// eprintServer/Responses/FaqResponse.cs (Assumed structure, updated) using eprintServer.Entities; using System.Collections.Generic; namespace eprintServer.Responses { public class FaqResponse { public int Id { get; set; } // Existing fields - KEEPING THESE public string QuestionEN { get; set; } = string.Empty; public string QuestionAR { get; set; } = string.Empty; public string AnswerEN { get; set; } = string.Empty; public string AnswerAR { get; set; } = string.Empty; // --- NEW Multilingual Fields ADDED --- public List Question { get; set; } = new List(); public List Answer { get; set; } = new List(); // ------------------------------------- public bool Active { get; set; } public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } public static FaqResponse FromEntity(Faq faq) { return new FaqResponse { Id = faq.Id, // Map existing fields QuestionEN = faq.QuestionEN, QuestionAR = faq.QuestionAR, AnswerEN = faq.AnswerEN, AnswerAR = faq.AnswerAR, // Map NEW fields (included by FaqService) Question = faq.Question, Answer = faq.Answer, Active = faq.Active, CreatedAt = faq.CreatedAt, UpdatedAt = faq.UpdatedAt }; } } }