Exemplo n.º 1
0
        public Task <PaginatedResult <Module> > Search([Service] IResolverContext context,
                                                       string query,
                                                       ModuleTypeEnum?type,
                                                       [Service] IMediator mediator)
        {
            var paginationQuery = context.GetPaginationQuery();

            return(mediator.Send(new SearchModulesQuery
            {
                Query = query,
                Type = type,
                PaginationQuery = paginationQuery,
            }));
        }