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

            SessionInitialize();
            HorarioSemanaEN s***N = new HorarioSemanaCAD(session).ReadOIDDefault(id);

            sem = new AssemblerHorarioSemana().ConvertENToModelUI(s***N);
            SessionClose();

            return(View(sem));
        }
        public ActionResult Delete(HorarioSemanaViewModel sem)
        {
            try
            {
                // TODO: Add delete logic here
                new HorarioSemanaCEN().Destroy(sem.Id);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult Edit(HorarioSemanaViewModel sem)
        {
            try
            {
                // TODO: Add update logic here
                HorarioSemanaCEN cen = new HorarioSemanaCEN();
                cen.Modify(sem.Id);

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

                HorarioSemanaCEN cen = new HorarioSemanaCEN();
                cen.New_();

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        // GET: HorarioSemana/Create
        public ActionResult Create()
        {
            HorarioSemanaViewModel sem = new HorarioSemanaViewModel();

            return(View(sem));
        }