// GET: Registrado/Edit/5
        public ActionResult Edit(int id)
        {
            NotificacionGenericaViewModel notige = null;

            SessionInitialize();
            NotificacionGenericaEN notiEN = new NotificacionGenericaCAD(session).ReadOIDDefault(id);

            notige = new AssemblerNotificacionGenerica().ConvertENToModelUI(notiEN);
            SessionClose();

            return(View(notige));
        }
        public ActionResult Delete(NotificacionGenericaViewModel notige)
        {
            try
            {
                // TODO: Add delete logic here
                new NotificacionGenericaCEN().Destroy(notige.id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult Edit(NotificacionGenericaViewModel notige)
        {
            try
            {
                // TODO: Add update logic here
                NotificacionGenericaCEN cen = new NotificacionGenericaCEN();
                cen.Modify(notige.id, notige.tipo, notige.texto, notige.nombre);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult Create(NotificacionGenericaViewModel notige)
        {
            try
            {
                // TODO: Add insert logic here

                NotificacionGenericaCEN cen = new NotificacionGenericaCEN();
                cen.New_(notige.tipo, notige.texto, notige.nombre);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        // GET: Registrado/Create
        public ActionResult Create()
        {
            NotificacionGenericaViewModel notige = new NotificacionGenericaViewModel();

            return(View(notige));
        }