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.
23 lines
693 B
23 lines
693 B
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DTOs
|
|
{
|
|
/// <summary>
|
|
/// 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
|
|
/// </summary>
|
|
public class AnswerDto
|
|
{
|
|
public uint Id { get; set; }
|
|
public string Content { get; set; } = null!;
|
|
public uint IdQuestion { get; set; }
|
|
|
|
public QuestionDto? Question { get; set; } = null!;
|
|
}
|
|
}
|