Fahrzeuge { get; set; } = new();
+}
diff --git a/FahrzeugeMVC/Program.cs b/FahrzeugeMVC/Program.cs
new file mode 100644
index 0000000..1510d12
--- /dev/null
+++ b/FahrzeugeMVC/Program.cs
@@ -0,0 +1,29 @@
+var builder = WebApplication.CreateBuilder(args);
+
+// Add services to the container.
+builder.Services.AddControllersWithViews();
+
+var app = builder.Build();
+
+// Configure the HTTP request pipeline.
+if (!app.Environment.IsDevelopment())
+{
+ app.UseExceptionHandler("/Home/Error");
+ // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
+ app.UseHsts();
+}
+
+app.UseHttpsRedirection();
+app.UseRouting();
+
+app.UseAuthorization();
+
+app.MapStaticAssets();
+
+app.MapControllerRoute(
+ name: "default",
+ pattern: "{controller=Home}/{action=Index}/{id?}")
+ .WithStaticAssets();
+
+
+app.Run();
diff --git a/FahrzeugeMVC/Properties/launchSettings.json b/FahrzeugeMVC/Properties/launchSettings.json
new file mode 100644
index 0000000..659d6e3
--- /dev/null
+++ b/FahrzeugeMVC/Properties/launchSettings.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://json.schemastore.org/launchsettings.json",
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:5033",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "https://localhost:7045;http://localhost:5033",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/FahrzeugeMVC/Views/Fahrzeug/Einfuegen.cshtml b/FahrzeugeMVC/Views/Fahrzeug/Einfuegen.cshtml
new file mode 100644
index 0000000..7fae84f
--- /dev/null
+++ b/FahrzeugeMVC/Views/Fahrzeug/Einfuegen.cshtml
@@ -0,0 +1,22 @@
+@model FahrzeugEinfugenModel
+
+Fügen sie ein neues Fahrzeug hinzu:
+
+
\ No newline at end of file
diff --git a/FahrzeugeMVC/Views/Fahrzeug/Index.cshtml b/FahrzeugeMVC/Views/Fahrzeug/Index.cshtml
new file mode 100644
index 0000000..06ffd4f
--- /dev/null
+++ b/FahrzeugeMVC/Views/Fahrzeug/Index.cshtml
@@ -0,0 +1,29 @@
+@model FahrzeugListeModel
+
+Diese Fahrzeuge befinden sich derzeit in der Datenbank:
+
+
+
+
+ | ID |
+ Name |
+ Type |
+
+
+
+ @foreach (var fahrzeug in Model.Fahrzeuge)
+ {
+
+ | @fahrzeug.Id |
+ @fahrzeug.Name |
+ @fahrzeug.GetType() |
+
+ }
+
+
+
+
+
+
+ @Html.ActionLink("Neues Fahrzeug anlegen", "Einfuegen", "Fahrzeug")
+
\ No newline at end of file
diff --git a/FahrzeugeMVC/Views/Home/Index.cshtml b/FahrzeugeMVC/Views/Home/Index.cshtml
new file mode 100644
index 0000000..bcfd79a
--- /dev/null
+++ b/FahrzeugeMVC/Views/Home/Index.cshtml
@@ -0,0 +1,8 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+
diff --git a/FahrzeugeMVC/Views/Home/Privacy.cshtml b/FahrzeugeMVC/Views/Home/Privacy.cshtml
new file mode 100644
index 0000000..af4fb19
--- /dev/null
+++ b/FahrzeugeMVC/Views/Home/Privacy.cshtml
@@ -0,0 +1,6 @@
+@{
+ ViewData["Title"] = "Privacy Policy";
+}
+@ViewData["Title"]
+
+Use this page to detail your site's privacy policy.
diff --git a/FahrzeugeMVC/Views/Shared/Error.cshtml b/FahrzeugeMVC/Views/Shared/Error.cshtml
new file mode 100644
index 0000000..a1e0478
--- /dev/null
+++ b/FahrzeugeMVC/Views/Shared/Error.cshtml
@@ -0,0 +1,25 @@
+@model ErrorViewModel
+@{
+ ViewData["Title"] = "Error";
+}
+
+Error.
+An error occurred while processing your request.
+
+@if (Model.ShowRequestId)
+{
+
+ Request ID: @Model.RequestId
+
+}
+
+Development Mode
+
+ Swapping to Development environment will display more detailed information about the error that occurred.
+
+
+ The Development environment shouldn't be enabled for deployed applications.
+ It can result in displaying sensitive information from exceptions to end users.
+ For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
+ and restarting the app.
+
diff --git a/FahrzeugeMVC/Views/Shared/_Layout.cshtml b/FahrzeugeMVC/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000..d47513c
--- /dev/null
+++ b/FahrzeugeMVC/Views/Shared/_Layout.cshtml
@@ -0,0 +1,53 @@
+
+
+
+
+
+ @ViewData["Title"] - FahrzeugeMVC
+
+
+
+
+
+
+
+
+
+ @RenderBody()
+
+
+
+
+
+
+
+ @await RenderSectionAsync("Scripts", required: false)
+
+
diff --git a/FahrzeugeMVC/Views/Shared/_Layout.cshtml.css b/FahrzeugeMVC/Views/Shared/_Layout.cshtml.css
new file mode 100644
index 0000000..c187c02
--- /dev/null
+++ b/FahrzeugeMVC/Views/Shared/_Layout.cshtml.css
@@ -0,0 +1,48 @@
+/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
+for details on configuring this project to bundle and minify static web assets. */
+
+a.navbar-brand {
+ white-space: normal;
+ text-align: center;
+ word-break: break-all;
+}
+
+a {
+ color: #0077cc;
+}
+
+.btn-primary {
+ color: #fff;
+ background-color: #1b6ec2;
+ border-color: #1861ac;
+}
+
+.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
+ color: #fff;
+ background-color: #1b6ec2;
+ border-color: #1861ac;
+}
+
+.border-top {
+ border-top: 1px solid #e5e5e5;
+}
+.border-bottom {
+ border-bottom: 1px solid #e5e5e5;
+}
+
+.box-shadow {
+ box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
+}
+
+button.accept-policy {
+ font-size: 1rem;
+ line-height: inherit;
+}
+
+.footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ white-space: nowrap;
+ line-height: 60px;
+}
diff --git a/FahrzeugeMVC/Views/Shared/_ValidationScriptsPartial.cshtml b/FahrzeugeMVC/Views/Shared/_ValidationScriptsPartial.cshtml
new file mode 100644
index 0000000..5d1f685
--- /dev/null
+++ b/FahrzeugeMVC/Views/Shared/_ValidationScriptsPartial.cshtml
@@ -0,0 +1,2 @@
+
+
diff --git a/FahrzeugeMVC/Views/_ViewImports.cshtml b/FahrzeugeMVC/Views/_ViewImports.cshtml
new file mode 100644
index 0000000..bf0217a
--- /dev/null
+++ b/FahrzeugeMVC/Views/_ViewImports.cshtml
@@ -0,0 +1,3 @@
+@using FahrzeugeMVC
+@using FahrzeugeMVC.Models
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/FahrzeugeMVC/Views/_ViewStart.cshtml b/FahrzeugeMVC/Views/_ViewStart.cshtml
new file mode 100644
index 0000000..a5f1004
--- /dev/null
+++ b/FahrzeugeMVC/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "_Layout";
+}
diff --git a/FahrzeugeMVC/appsettings.Development.json b/FahrzeugeMVC/appsettings.Development.json
new file mode 100644
index 0000000..0c208ae
--- /dev/null
+++ b/FahrzeugeMVC/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/FahrzeugeMVC/appsettings.json b/FahrzeugeMVC/appsettings.json
new file mode 100644
index 0000000..10f68b8
--- /dev/null
+++ b/FahrzeugeMVC/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/Ubung.sln b/Ubung.sln
index e2665ea..58309f9 100644
--- a/Ubung.sln
+++ b/Ubung.sln
@@ -7,6 +7,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ubung", "Ubung\Ubung.csproj
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLMan", "SQLMan\SQLMan.csproj", "{EBEED711-090F-4441-B51E-94F492E920D2}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FahrzeugeMVC", "FahrzeugeMVC\FahrzeugeMVC.csproj", "{9E183977-78A1-40F3-87F9-130222AD8271}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FahrzeugDatenBank", "FahrzeugDatenBank\FahrzeugDatenBank.csproj", "{34C040B0-819F-4DF8-94FD-77A6A037F957}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +25,14 @@ Global
{EBEED711-090F-4441-B51E-94F492E920D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EBEED711-090F-4441-B51E-94F492E920D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EBEED711-090F-4441-B51E-94F492E920D2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9E183977-78A1-40F3-87F9-130222AD8271}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9E183977-78A1-40F3-87F9-130222AD8271}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9E183977-78A1-40F3-87F9-130222AD8271}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9E183977-78A1-40F3-87F9-130222AD8271}.Release|Any CPU.Build.0 = Release|Any CPU
+ {34C040B0-819F-4DF8-94FD-77A6A037F957}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {34C040B0-819F-4DF8-94FD-77A6A037F957}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {34C040B0-819F-4DF8-94FD-77A6A037F957}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {34C040B0-819F-4DF8-94FD-77A6A037F957}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE