public ActionResult AgregarCar(Preg preg) { try { if (Session["Admin"].ToString() != "Admin") { return RedirectToAction("AD", "BackOffice"); } else { Session["Msg"] = BD.AgregarCar(preg); return RedirectToAction("ABMCar", "BackOffice"); } } catch (NullReferenceException) { return RedirectToAction("AD", "BackOffice"); } }