jerguero-cs/Pages/NewDefinition.cshtml.cs

20 lines
429 B
C#
Raw Normal View History

2024-08-24 00:49:31 +00:00
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace JergueroCS.Pages
{
public class NewDefinitionModel : PageModel
{
2024-08-24 01:44:57 +00:00
public IActionResult OnGet()
2024-08-24 00:49:31 +00:00
{
2024-08-24 01:44:57 +00:00
if (User.Identity?.IsAuthenticated != true)
{
return RedirectToPage("/Login");
}
2024-08-24 00:49:31 +00:00
System.Console.WriteLine(":D");
2024-08-24 01:44:57 +00:00
return Page();
2024-08-24 00:49:31 +00:00
}
}
}