示例#1
0
        public ActionResult ModificarAdmin(int[] Box)
        {
            int v = ValidarUsuario();

            if (v == 1)
            {
                return(View("../Home/Login"));
            }
            if (v == 2)
            {
                return(View("../Home/Index"));
            }
            if (Box != null)
            {
                foreach (int i in Box)
                {
                    BD.AgregarAdmins(i);
                }
            }
            return(RedirectToAction("Index", "Backoffice"));
        }