feature: add blazor app
This commit is contained in:
19
FahrzeugeMVC/Models/FahrzeugEinfugenModel.cs
Normal file
19
FahrzeugeMVC/Models/FahrzeugEinfugenModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace FahrzeugeMVC.Models;
|
||||
|
||||
public class FahrzeugEinfugenModel
|
||||
{
|
||||
[Required]
|
||||
public string? Name { get; set; }
|
||||
[Required]
|
||||
public string? Type { get; set; }
|
||||
|
||||
public List<SelectListItem> FahrzeugTypen { get; private set; } = new()
|
||||
{
|
||||
new SelectListItem("Auto", "Auto", true),
|
||||
new SelectListItem("Motorrad", "Motorrad"),
|
||||
new SelectListItem("Fahrrad", "Fahrrad")
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user