Exemple #1
0
        // GET: Database
        public ActionResult Update(string password)
        {
            if (password != "destruir")
            {
                AddModelError("Contraseña incorrecta");
                return(View("Index"));
            }

            DatabaseCreator.Update();



            if (SystemUsers.Count() == 0)
            {
                var systemUser = new SystemUser()
                {
                    Username  = "******",
                    Password  = "******",
                    Firstname = "System",
                    Lastname  = "System",
                    Email     = "*****@*****.**",
                    Role      = RoleEnum.Administrator,
                };

                SystemUsers.Put(systemUser);
            }

            UpdateNotifications();

            CreateLogTable();

            CreateStoredProcedures();


            return(View("IndexMessage", null, "La base de datos se modificó con exito"));
        }