mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-03 16:19:46 +00:00
16 lines
562 B
C#
16 lines
562 B
C#
using ShoppingAssistantApi.Application.IServices;
|
|
using ShoppingAssistantApi.Application.Models.Dtos;
|
|
using ShoppingAssistantApi.Application.Paging;
|
|
using HotChocolate.Authorization;
|
|
|
|
namespace ShoppingAssistantApi.Api.Queries;
|
|
|
|
[ExtendObjectType(OperationTypeNames.Query)]
|
|
public class RolesQuery
|
|
{
|
|
[Authorize]
|
|
public Task<PagedList<RoleDto>> GetRolesPageAsync(int pageNumber, int pageSize, CancellationToken cancellationToken,
|
|
[Service] IRolesService service)
|
|
=> service.GetRolesPageAsync(pageNumber, pageSize, cancellationToken);
|
|
}
|