Skip to content

Commit 3642830

Browse files
committed
Moved cshtml to pages
1 parent 2d6c748 commit 3642830

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

src/LinkDotNet.Blog.Web/Features/Login.cshtml

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/LinkDotNet.Blog.Web/Features/Logout.cshtml

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/LinkDotNet.Blog.Web/Features/Error.cshtml renamed to src/LinkDotNet.Blog.Web/Pages/Error.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@page
2-
@model LinkDotNet.Blog.Web.Features.ErrorModel
2+
@model LinkDotNet.Blog.Web.Pages.ErrorModel
33

44
<!DOCTYPE html>
55
<html>

src/LinkDotNet.Blog.Web/Features/Error.cshtml.cs renamed to src/LinkDotNet.Blog.Web/Pages/Error.cshtml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Microsoft.AspNetCore.Mvc;
33
using Microsoft.AspNetCore.Mvc.RazorPages;
44

5-
namespace LinkDotNet.Blog.Web.Features;
5+
namespace LinkDotNet.Blog.Web.Pages;
66

77
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
88
[IgnoreAntiforgeryToken]
@@ -16,4 +16,4 @@ public void OnGet()
1616
{
1717
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
1818
}
19-
}
19+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@page
2+
@model LinkDotNet.Blog.Web.Pages.LoginModel
3+
@{
4+
}

src/LinkDotNet.Blog.Web/Features/Login.cshtml.cs renamed to src/LinkDotNet.Blog.Web/Pages/Login.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using LinkDotNet.Blog.Web.Authentication;
33
using Microsoft.AspNetCore.Mvc.RazorPages;
44

5-
namespace LinkDotNet.Blog.Web.Features;
5+
namespace LinkDotNet.Blog.Web.Pages;
66

77
public partial class LoginModel : PageModel
88
{
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@page
2+
@model LinkDotNet.Blog.Web.Pages.LogoutModel
3+
@{
4+
}

src/LinkDotNet.Blog.Web/Features/Logout.cshtml.cs renamed to src/LinkDotNet.Blog.Web/Pages/Logout.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using LinkDotNet.Blog.Web.Authentication;
33
using Microsoft.AspNetCore.Mvc.RazorPages;
44

5-
namespace LinkDotNet.Blog.Web.Features;
5+
namespace LinkDotNet.Blog.Web.Pages;
66

77
public partial class LogoutModel : PageModel
88
{

tests/LinkDotNet.Blog.UnitTests/Web/Pages/LoginModelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Threading.Tasks;
22
using LinkDotNet.Blog.Web.Authentication;
3-
using LinkDotNet.Blog.Web.Features;
3+
using LinkDotNet.Blog.Web.Pages;
44

55
namespace LinkDotNet.Blog.UnitTests.Web.Pages;
66

@@ -17,4 +17,4 @@ public async Task ShouldLogin()
1717

1818
loginManager.Verify(l => l.SignInAsync(redirectUrl), Times.Once);
1919
}
20-
}
20+
}

tests/LinkDotNet.Blog.UnitTests/Web/Pages/LogoutModelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Threading.Tasks;
22
using LinkDotNet.Blog.Web.Authentication;
3-
using LinkDotNet.Blog.Web.Features;
3+
using LinkDotNet.Blog.Web.Pages;
44

55
namespace LinkDotNet.Blog.UnitTests.Web.Pages;
66

@@ -17,4 +17,4 @@ public async Task ShouldLogout()
1717

1818
loginManager.Verify(l => l.SignOutAsync(redirectUrl), Times.Once);
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)