SurveyVista/Web/ViewModel/QuestionnaireVM/ResponseQuestionnaireViewModel.cs
2024-04-30 11:30:33 +02:00

26 lines
786 B
C#

using System.ComponentModel.DataAnnotations;
namespace Web.ViewModel.QuestionnaireVM
{
public class ResponseQuestionnaireViewModel
{
public int Id { get; set; } // Questionnaire ID
public string? Title { get; set; } // Title of the questionnaire
public string? Description { get; set; } // Description of the questionnaire
[Required]
public string? UserName { get; set; }
[Required]
public string? Email { get; set; }
public int ParticipantCount { get; set; }
public int QuestionsAnsweredCount { get; set; }
public List<ResponseQuestionViewModel> Questions { get; set; } = new List<ResponseQuestionViewModel>();
}
}