RouteChanges

This commit is contained in:
2025-08-13 20:56:01 +02:00
parent 6ef5202c97
commit 9bcae60908
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public class ServerController : Controller
return View(); return View();
} }
[HttpPost("AddServer")] [HttpPost("AddServerP")]
public async Task<IActionResult> AddServer(AddServerViewModel vm) public async Task<IActionResult> AddServer(AddServerViewModel vm)
{ {
if (!ModelState.IsValid) if (!ModelState.IsValid)

View File

@@ -9,7 +9,7 @@
<i class="bi bi-plus-circle me-2"></i>Neuen Server hinzufügen <i class="bi bi-plus-circle me-2"></i>Neuen Server hinzufügen
</h1> </h1>
<form asp-action="AddServer" method="post" novalidate> <form asp-action="AddServerP" method="post" novalidate>
<div class="mb-3"> <div class="mb-3">
<label asp-for="Name" class="form-label"><i class="bi bi-terminal me-1"></i>Servername</label> <label asp-for="Name" class="form-label"><i class="bi bi-terminal me-1"></i>Servername</label>
<input asp-for="Name" class="form-control" placeholder="z.B. Webserver-01" /> <input asp-for="Name" class="form-control" placeholder="z.B. Webserver-01" />