jerguero-cs/Pages/NewDefinition.cshtml.cs
2024-08-23 20:44:57 -05:00

20 lines
429 B
C#

using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace JergueroCS.Pages
{
public class NewDefinitionModel : PageModel
{
public IActionResult OnGet()
{
if (User.Identity?.IsAuthenticated != true)
{
return RedirectToPage("/Login");
}
System.Console.WriteLine(":D");
return Page();
}
}
}