예제 #1
0
        public void OnGet()
        {
            //If URL doesn't specify a name
            if (string.IsNullOrWhiteSpace(FName))
            {
                FName = "User"; //Create default name
            }

            sngs = factory.GetActiveRecords().ToList();
        }
예제 #2
0
        public IActionResult OnGet()
        {
            IActionResult temp;

            if (HttpContext.Session.GetString("SongAdmin_Email") is null)
            {
                temp = RedirectToPage("/Admin/Index");
            }
            else
            {
                sngs = factory.GetActiveRecords().ToList();
                temp = Page();
            }

            return(temp);
        }