AddServer Redirect fixed
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,6 +3,9 @@
|
||||
/logs
|
||||
*.env
|
||||
|
||||
/persistence/*.db-shm
|
||||
/persistence/*.db-wal
|
||||
|
||||
# Build-Ordner
|
||||
bin/
|
||||
obj/
|
||||
|
@@ -49,7 +49,7 @@ public class ServerController : Controller
|
||||
_context.Servers.Add(server);
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
return Redirect("Server/Overview");
|
||||
return RedirectToAction(nameof(Overview));
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
|
Reference in New Issue
Block a user