示例#1
0
        public ActionResult BorrarPer(string Confirmacion, int id)
        {
            try
            {
                if (Session["Admin"].ToString() != "Admin")
                {
                    return RedirectToAction("AD", "BackOffice");
                }
                else
                {
                    if (Confirmacion == "Si")
                    {
                        Session["Msg"] = BD.BorrarP(id);
                    }
                    else
                    {
                        Session["Msg"] = "Ha decidido no Eliminar Personajes";

                    }
                    return RedirectToAction("ABMPer", "BackOffice");
                }
            }
            catch (NullReferenceException)
            {
                return RedirectToAction("AD", "BackOffice");
            }
        }