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 CertAuth.Data; using CertAuth.Domain; using CertAuthAdmin.Models; namespace CertAuthAdmin.Pages.Users { public class UsersListModel : PageModel { private readonly CertAuth.Data.CertAuthContext _context; private readonly UsersDA UDA; public UsersListModel(CertAuth.Data.CertAuthContext context) { _context = context; UDA = new UsersDA(); } [BindProperty] public IList UserWD { get;set; } [BindProperty(Name = "editID", SupportsGet = true)] public string editID { get; set; } public async Task OnGetAsync() { //User = await _context.Users.ToListAsync(); UserWD = (IList)UDA.GetAll_WD().ToList(); } } }