public IEnumerable <UserProductClick> GetUserProductClicks([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.UserProductClicks.Where(m => m.ProductId == product.ProductId).ToList());
 }
 public ProductCategory GetProductCategory([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.ProductCategories.Where(m => m.CategoryId == product.CategoryId).SingleOrDefault());
 }
 public IEnumerable <ProductImage> GetProductImages([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.ProductImages.Where(m => m.ProductId == product.ProductId).ToList());
 }
 public Marketer GetMarketer([Parent] SponsoredProduct product, IResolverContext ctx)
 {
     return(_ovidDb.Marketers.Where(m => m.MarketerId == product.MarkerterId).SingleOrDefault());
 }