// GET: Registrado/Details/5
        public ActionResult Details(int id)
        {
            HorarioDiaCEN       HorarioDiaCEN = new HorarioDiaCEN();
            HorarioDiaEN        hdEN          = HorarioDiaCEN.ReadOID(id);
            HorarioDiaViewModel hdVM          = new AssemblerHorarioDia().ConvertENToModelUI(hdEN);

            return(View(hdVM));
        }
        // GET: HorarioDia/Delete/5
        public ActionResult Delete(int id)
        {
            try
            {
                SessionInitialize();
                HorarioDiaCAD       diaCAD = new HorarioDiaCAD(session);
                HorarioDiaCEN       cen    = new HorarioDiaCEN(diaCAD);
                HorarioDiaEN        diaEN  = cen.ReadOID(id);
                HorarioDiaViewModel dia    = new AssemblerHorarioDia().ConvertENToModelUI(diaEN);

                SessionClose();


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