Пример #1
0
        public void PruebaInsert()
        {
            BancoFacade fcd = new BancoFacade();

            fcd.Insert(new Banco()
            {
                Nombre          = "Banco 3",
                Direccion       = "Direccion 3",
                FechaDeRegistro = DateTime.Now
            });

            // Assert
            Assert.IsNotNull(true);
        }
Пример #2
0
        public ActionResult Form(Banco item)
        {
            try
            {
                item.FechaDeRegistro = DateTime.Now;

                //Validanmos los datos desde backend

                BancoFacade fcd = new BancoFacade();
                fcd.Insert(item);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                return(View("Error"));
            }
        }