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

23 lines
588 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 Category
{
public int Id { get; set; }
[Display(Name="Name")]
[NotNullOrEmpty]
public string Name { get; set; }
[Display(Name = "Beschreibung")]
public string Description { get; set; }
public ICollection<Section> Sections { get; set; } = new HashSet<Section>();
}
}