public IQueryable <Product> GetCommands(Category category, [ScopedService] DbSalesContext context) { return(context.Products.Where(p => p.IdCategory == category.IdCategory)); }
public IQueryable <Category> GetCategorys([ScopedService] DbSalesContext context) { return(context.Categories); }