Kursanlage und bearbeitung
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -8,7 +9,10 @@ namespace MultipleChoiceTrainer.Models.DataModels
|
||||
public class Category
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Display(Name="Name")]
|
||||
public string Name { get; set; }
|
||||
[Display(Name = "Beschreibung")]
|
||||
public string Description { get; set; }
|
||||
|
||||
public ICollection<Section> Sections { get; set; } = new HashSet<Section>();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -8,9 +9,13 @@ namespace MultipleChoiceTrainer.Models.DataModels
|
||||
public class Section
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Display(Name = "Name")]
|
||||
public string Name { get; set; }
|
||||
[Display(Name = "Beschreibung")]
|
||||
public string Description { get; set; }
|
||||
|
||||
|
||||
public Category Category { get; set; }
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user