public void GetItems() { ECommerce it = new ECommerce(); var result = it.GetItems(Enumerations.enumCountries.MCO.ToString(), "MCO1747", Enumerations.enumTypeSearch.Category); var result2 = it.GetItems(Enumerations.enumCountries.MCO.ToString(), "Celulares", Enumerations.enumTypeSearch.Item); }
// GET: Item public ActionResult Search(string id, string type) { if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(type)) { ItemResponse result = null; if (type == "1") { result = oECommerce.GetItems(Enumerations.enumCountries.MCO.ToString(), id, Enumerations.enumTypeSearch.Item); } else if (type == "2") { result = oECommerce.GetItems(Enumerations.enumCountries.MCO.ToString(), id, Enumerations.enumTypeSearch.Category); } return(View(result)); } return(RedirectToAction("Index")); }