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