Exemplo n.º 1
0
        public ResultProduct Get()
        {
            // return new Product().GetProducts();
            var service = new ExternalProductService();

            return(service.GetProducts());
        }
Exemplo n.º 2
0
 public GetCategoryListWithProductsQueryHandler(IMapper mapper,
                                                ICategoryRepository categoryRepository,
                                                ICacheService cacheService,
                                                ExternalProductService externalProductService)
 {
     this.mapper                 = mapper;
     this.categoryRepository     = categoryRepository;
     this.cacheService           = cacheService;
     this.externalProductService = externalProductService;
 }
 public ActionResult WalMartProducts(string query)
 {
     if (!String.IsNullOrEmpty(query))
     {
         var service = new ExternalProductService();
         var result  = service.GetWalmartProducts(query);
         return(View(result));
     }
     else
     {
         return(View(new WalmartInfo()));
     }
 }