Beispiel #1
0
        // GET: Registrado/Details/5
        public ActionResult Details(int id)
        {
            NotificacionGenericaCEN       NotificacionGenericaCEN = new NotificacionGenericaCEN();
            NotificacionGenericaEN        notiEN = NotificacionGenericaCEN.ReadOID(id);
            NotificacionGenericaViewModel notiVM = new AssemblerNotificacionGenerica().ConvertENToModelUI(notiEN);

            return(View(notiVM));
        }
        // GET: Registrado/Delete/5
        public ActionResult Delete(int id)
        {
            try
            {
                SessionInitialize();
                NotificacionGenericaCAD       notigeCAD = new NotificacionGenericaCAD(session);
                NotificacionGenericaCEN       cen       = new NotificacionGenericaCEN(notigeCAD);
                NotificacionGenericaEN        notigeEN  = cen.ReadOID(id);
                NotificacionGenericaViewModel notige    = new AssemblerNotificacionGenerica().ConvertENToModelUI(notigeEN);

                SessionClose();


                return(View(notige));
            }
            catch
            {
                //Meter aqui el mensaje de error
                return(View());
            }
        }