Beispiel #1
0
        public ActionResult Crear(String telefonoFijo, String telefonoCelular, String correo, String nombre, String identificacion)
        {
            try
            {
                InformacionContacto informacionContacto = new InformacionContacto(correo, telefonoFijo, telefonoCelular);
                Proveedor           proveedor           = new Proveedor(identificacion, nombre, informacionContacto);
                proveedorDao.insertarProveedor(proveedor);

                return(RedirectToAction("Index"));
            }
            catch (MySqlException ex)
            {
                return(RedirectToAction("Error", "Proveedor"));
            }
        }