| 123456789101112131415161718 |
- using Application.Features.Director.GetUsers;
- using Microsoft.AspNetCore.Mvc.RazorPages;
- using MediatR;
- namespace Admin.Pages.Director.User
- {
- public class IndexModel(IMediator mediator) : PageModel
- {
- public int Total { get; set; } = 0;
- public List<Response> List { get; set; } = [];
- public async Task OnGetAsync(CancellationToken ct)
- {
- List = await mediator.Send(new GetAllUserQuery(), ct);
- Total = List.Count;
- }
- }
- }
|