public ActionResult Guardar(Horario model)
        {
            if (ModelState.IsValid)
            {
                model.Guardar();
                return(Redirect("~/Horario"));
            }

            else
            {
                return(View("~/View/Horario/AgregarEditar.cshtml", model));
            }
        }