public List <Category> Handle(AllCategoryQuery query) { return(categoryQueryRepository.GetAll()); }
public async Task <List <Category> > HandleAsync(AllCategoryQuery query) { return(await repository.GetAllAsync()); }