Skip to content

Commit

Permalink
redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jul 6, 2023
1 parent e0e23c9 commit 91288b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
12 changes: 3 additions & 9 deletions EmployeePaycheck/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace EmployeePaycheck.Pages;

public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _logger;

public IndexModel(ILogger<IndexModel> logger)
public IActionResult OnGet()
{
_logger = logger;
}

public void OnGet()
{

return Redirect("/Paycheck/PaycheckEnterIdS1");
}
}
13 changes: 1 addition & 12 deletions EmployeePaycheck/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,7 @@
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
<div class="container">
<a class="navbar-brand" asp-area="" asp-page="/Index">Employee Paycheck</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-page="/Paycheck/PaycheckEnterIdS1">Paycheck</a>
</li>
</ul>
</div>
<a class="navbar-brand" asp-area="" asp-page="/Paycheck/PaycheckEnterIdS1">Employee Paycheck</a>
</div>
</nav>
</header>
Expand Down

0 comments on commit 91288b9

Please sign in to comment.