using Model;
using System.ComponentModel.DataAnnotations;

namespace Web.ViewModel.QuestionnaireVM
{
    public class EditQuestionnaireViewModel
    {
        public EditQuestionnaireViewModel()
        {
            Questions = new List<Question>();
        }
        public int Id { get; set; }
        [Required]

        [Display(Name ="Questionnaire title")]
        [StringLength(40, ErrorMessage = "Title must be between 1 and 40 characters.", MinimumLength = 1)]
        public string? Title { get; set; }
        [Required]
        public string? Description { get; set; }

        public List<Question>? Questions { get; set; }
    
    }
}
