public async Task <IEnumerable <Entities.Category> > Handle(GetAllCategory request, CancellationToken cancellationToken) { string sql = "getAlltopic"; var listCate = _query.Query <Entities.Category>(1, sql, null).ToList(); return(await Task.FromResult(listCate)); }
public async Task <IEnumerable <Category> > Handle(GetAllCategory request, CancellationToken cancellationToken) { return(await categoryRepo.GetAllCategoryAsync()); }