Пример #1
0
        public ActionResult Search(FormCollection fc)
        {
            string condition = fc["condition"];
            string keyword   = fc["keyword"];

            if (condition.Equals("byID"))
            {
                ViewBag.listCustomerTerritory = servicio.ObtenerClientesNombreCliente(Convert.ToString(keyword));
            }
            else
            if (condition.Equals("All"))
            {
                ViewBag.listCustomerTerritory = servicio.ObtenerClientes();
            }
            else
            {
                ViewBag.listCustomerTerritory = servicio.ObtenerClientesNombrePais(keyword);
            }

            return(View("Index"));
        }