public ActionResult Create(PlanEstrategico planestrategico)
 {
     try{
         if (ModelState.IsValid)
         {
             _db.PlanesEstrategicos.AddObject(planestrategico);
             _db.SaveChanges();
             _auditorRepository.GuardarRegistroCreacion(planestrategico);
             return(RedirectToAction("Index"));
         }
         return(View(planestrategico));
     }
     catch (Exception ex)
     {
         Utilidades.ColocarMensaje(ex, Request);
         return(RedirectToAction("Index"));
     }
 }
        public ActionResult Edit(PlanEstrategico planestrategico)
        {
            try{
                if (ModelState.IsValid)
                {
                    _db.PlanesEstrategicos.Attach(planestrategico);
                    _db.ObjectStateManager.ChangeObjectState(planestrategico, EntityState.Modified);
                    _db.SaveChanges();
                    _auditorRepository.GuardarRegistroEdicion(TempData["planestrategicoEdit" + planestrategico.Id], planestrategico);
                    return(RedirectToAction("Index"));
                }

                return(View(planestrategico));
            }
            catch (Exception ex)
            {
                Utilidades.ColocarMensaje(ex, Request);
                return(RedirectToAction("Index"));
            }
        }