Ejemplo n.º 1
0
        // GET: Home
        public ActionResult Index()
        {
            ConsultaPersona obj = new ConsultaPersona();

            try {
                obj.vSexo = (SelectList)JQuery.SelectListAddItem(new List <ItemSelectList>(), "Valor", "Texto", "", "Seleccione uno...");

                //ViewBag.lst = new List<Persona>();
                //return View();
            }
            catch (Exception ex)
            {
                Registro.RegistrarLog(NivelLog.Error, "Error", ex);
                return(RedirectToAction("Error400", "Error"));
            }
            return(View(obj));
        }