public IEnumerable <Product> GetByCategoryId(int id)
 {
     return(_context.GetByCategoryId(id));
 }
Beispiel #2
0
 public IReadOnlyCollection <Product> GetAllByCategoryId(int id)
 {
     return(_productContext.GetByCategoryId(id));
 }