public ResultProduct Get() { // return new Product().GetProducts(); var service = new ExternalProductService(); return(service.GetProducts()); }
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())); } }