adding pages and css and .gitignore, scripts, resources, to-do.md
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace StatiKosev.Pages;
|
||||
|
||||
public class IndexModel : PageModel
|
||||
{
|
||||
public string VisitorName { get; private set; } = "";
|
||||
|
||||
public void OnGet()
|
||||
{
|
||||
VisitorName = User.Identity?.IsAuthenticated == true ? User.Identity.Name! : "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user