public ActionResult Create(WordByWordCreateViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                viewModel.WordByWord.Descripcion = viewModel.WordByWord.Enunciado.Replace("#", " ");

                db.WordByWords.Add(viewModel.WordByWord);
                db.SaveChanges();
                return(RedirectToAction("Create", "WordByWords", new { id = viewModel.WordByWord.BloqueId }));
            }


            viewModel.Inicializar(viewModel.WordByWord.BloqueId);
            return(View(viewModel));
        }
        // GET: Admin/WordByWords/Create
        public ActionResult Create(int id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Bloque bloque = db.Bloques.SingleOrDefault(bl => bl.BloqueId == id);

            if (bloque == null)
            {
                return(HttpNotFound());
            }
            WordByWordCreateViewModel viewModel = new WordByWordCreateViewModel();

            viewModel.Inicializar(id);
            viewModel.WordByWord = new WordByWord();
            viewModel.WordByWord.TipoEjercicioId = (int)TiposDeEjerciciosId.WordByWord;
            viewModel.WordByWord.BloqueId        = id;
            viewModel.WordByWord.SubTemaId       = bloque.SubTemaId;
            viewModel.WordByWord.AreaId          = viewModel.bloque.AreaId;
            return(View(viewModel));
        }