// GET: Products public ActionResult Product(string name) { string ip = GetIPAddress(); Array zones = Enum.GetValues(typeof(Zone)); Zone randomZone = (Zone)zones.GetValue(Math.Abs(ip.GetHashCode()) % zones.Length); ApplicationServicesSoapClient application = new ApplicationServicesSoapClient(); return(View(application.GetProduct(name, Zone.CENTER))); }
// GET: Products public ActionResult Index() { ApplicationServicesSoapClient application = new ApplicationServicesSoapClient(); return(View(application.GetProducts())); }