namespace DTOs
{
///
/// define a DTO of an answer for a Question with Mutiple Choice
/// properties :
/// Id : identifier in the database
/// Content : content of the answer
///
public class AnswerDto
{
public int Id { get; set; }
public string Content { get; set; } = null!;
///
/// constructor of an answer
///
/// the content of an answer
/// the id of an answer
public AnswerDto(string content, int id = -1)
{
Content = content;
Id = id;
}
}
}