| | |
| | | public class DictionaryCategoriesQueryHandler( |
| | | IRepository<DictionaryCategory> rep |
| | | ) : IRequestHandler<GetDictionaryCategoriesQuery, PagedListQueryResult<GetDictionaryCategoriesQueryResultItem>>, |
| | | IRequestHandler<GetDictionaryCategorySelectQuery, List<SelectQueryResultOption<Guid, GetDictionaryCategorySelectQueryOption>>> |
| | | IRequestHandler<GetDictionaryCategorySelectQuery, List<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>> |
| | | { |
| | | private readonly IRepository<DictionaryCategory> rep = rep; |
| | | |
| | |
| | | /// <param name="request"></param> |
| | | /// <param name="cancellationToken"></param> |
| | | /// <returns></returns> |
| | | public Task<List<SelectQueryResultOption<Guid, GetDictionaryCategorySelectQueryOption>>> Handle(GetDictionaryCategorySelectQuery request, CancellationToken cancellationToken) |
| | | public Task<List<SelectOption<Guid, GetDictionaryCategorySelectQueryOption>>> Handle(GetDictionaryCategorySelectQuery request, CancellationToken cancellationToken) |
| | | { |
| | | return request.GetSelect<DictionaryCategory, Guid, GetDictionaryCategorySelectQueryOption>( |
| | | it => it.Id, |