Redirect Change
This commit is contained in:
@@ -6,7 +6,7 @@ using Watcher.Models;
|
|||||||
using Watcher.ViewModels;
|
using Watcher.ViewModels;
|
||||||
|
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[Route("[controller]")]
|
[Route("Server")]
|
||||||
public class ServerController : Controller
|
public class ServerController : Controller
|
||||||
{
|
{
|
||||||
private readonly AppDbContext _context;
|
private readonly AppDbContext _context;
|
||||||
@@ -56,7 +56,7 @@ public class ServerController : Controller
|
|||||||
|
|
||||||
_logger.LogInformation("Neuer Server erstellt: {server}", server.Name);
|
_logger.LogInformation("Neuer Server erstellt: {server}", server.Name);
|
||||||
|
|
||||||
return RedirectToAction(nameof(Overview));
|
return RedirectToAction("Overview", "Server");
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("Delete")]
|
[HttpPost("Delete")]
|
||||||
|
Reference in New Issue
Block a user