using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.EntityFrameworkCore; using _2021_backend.Data; using _2021_backend.Models; namespace _2021_backend.Pages.Users { public class IndexModel : PageModel { private readonly _2021_backend.Data.BackendContext _context; public IndexModel(_2021_backend.Data.BackendContext context) { _context = context; } public string SECRET = "EVa N13 @!@"; public new IList User { get;set; } public async Task OnGetAsync() { User = await _context.Users.ToListAsync(); } } }