Files
Multiplechoicetrainer/MultipleChoiceTrainer/Models/DataModels/Section.cs
2020-06-10 13:23:29 +02:00

28 lines
750 B
C#

using MultipleChoiceTrainer.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace MultipleChoiceTrainer.Models.DataModels
{
public class Section
{
public int Id { get; set; }
[Display(Name = "Name")]
[NotNullOrEmpty]
public string Name { get; set; }
[Display(Name = "Beschreibung")]
public string Description { get; set; }
[Display(Name = "Kurs")]
public Category Category { get; set; }
[Display(Name = "Kurs")]
public int CategoryId { get; set; }
public ICollection<Question> Questions { get; set; } = new HashSet<Question>();
}
}