Exemple #1
0
        public ActionResult update(string DNI)
        {
            NegCliente obj = new NegCliente();
            ClienteBO  dto = obj.Listar().FirstOrDefault(a => a.DNI == DNI);

            return(View("update", dto));
        }
        public ActionResult Update(string DNI)
        {
            List <SelectListItem> lst = new List <SelectListItem>();

            lst.Add(new SelectListItem()
            {
                Text = "Cédula de ciudadania", Value = "CC"
            });
            lst.Add(new SelectListItem()
            {
                Text = "Cédula de extranjeria", Value = "CE"
            });
            lst.Add(new SelectListItem()
            {
                Text = "Nit", Value = "NIT"
            });
            lst.Add(new SelectListItem()
            {
                Text = "Pasaporte", Value = "PAP"
            });
            lst.Add(new SelectListItem()
            {
                Text = "Tarjeta de identidad", Value = "TI"
            });

            ViewBag.Opciones = lst;
            NegCliente obj = new NegCliente();
            ClienteBO  dto = obj.Listar().FirstOrDefault(a => a.NUM_IDENT_CLI == DNI);

            return(View("update", dto));
        }
        private List <ClienteBO> getClientes()
        {
            NegCliente obj = new NegCliente();

            return(obj.Listar());
        }
Exemple #4
0
        public ActionResult Listar()
        {
            NegCliente obj = new NegCliente();

            return(View(obj.Listar()));
        }