You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
698 B
26 lines
698 B
namespace DTOs
|
|
{
|
|
/// <summary>
|
|
/// define a DTO of an answer for a Question with Mutiple Choice
|
|
/// properties :
|
|
/// Id : identifier in the database
|
|
/// Content : content of the answer
|
|
/// </summary>
|
|
public class AnswerDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Content { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// constructor of an answer
|
|
/// </summary>
|
|
/// <param name="content">the content of an answer</param>
|
|
/// <param name="id">the id of an answer</param>
|
|
public AnswerDto(string content, int id = -1)
|
|
{
|
|
Content = content;
|
|
Id = id;
|
|
}
|
|
}
|
|
}
|