20 lines
429 B
C#
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();
|
|
}
|
|
}
|
|
}
|