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.Controllers; //using CertAuthAPI.Controllers; using CertAuthAdmin.Models; using System.Media; namespace CertAuthAdmin.Pages.Users { public class ListModel : PageModel { private readonly CertAuth.Data.CertAuthContext _context; //private readonly CertAuthAPI.Controllers.UsersController _UC; public ListModel(CertAuth.Data.CertAuthContext context) { _context = context; //_UC = UC; } //public IList User { get; set; } UsersDA UDA = new UsersDA(); public IList UserWD { get; set; } //public ActionResult> GT { get; set; } //public async Task OnGetAsync() //public Task OnGet() public void OnGet() { UserWD = (IList)UDA.GetAll_WD().ToList(); //return Page(); //User = await _context.Users.ToListAsync(); //User = _context.Users.ToList(); //User = await (IList)_UC.GetUsers(); //GT = await _UC.GetUsers(); //GT = await _UC.GetUsers(); } //public async Task OnGetAsync() //{ // GT = await _UC.GetUsers(); // return Page(); //} } }