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.
3.01-QCM_MuscuMaths/WebApi/DTOs/AnswerDto.cs

26 lines
695 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 long Id { get; set; }
public string Content { get; set; } = null!;
/// <summary>
/// constructor of an answer
/// </summary>
/// <param name="id">the id of an answer</param>
/// <param name="content">the content of an answer</param>
public AnswerDto(long id, string content)
{
Id = id;
Content = content;
}
}
}