using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DTOs { /// /// define a DTO for an answer for a Question with Mutiple Choice /// properties : /// Id : identifier in the database /// Content : content of the answer /// IdQuestion : the id of the question which it answer to /// Question : the question which it answer to /// public class AnswerDto { public int Id { get; set; } public string Content { get; set; } = null!; public int? IdQuestion { get; set; } } }