public ActionResult Create(captchas captchas)
        {
            if (ModelState.IsValid)
            {
                db.captchas.Add(captchas);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.imageComplex = new SelectList(db.imagesComplex, "id", "description", captchas.imageComplex);
            ViewBag.imageFormat = new SelectList(db.imagesFormat, "id", "description", captchas.imageFormat);
            ViewBag.soundFormat = new SelectList(db.soundsFormat, "id", "description", captchas.soundFormat);
            return View(captchas);
        }
 public ActionResult Edit(captchas captchas)
 {
     if (ModelState.IsValid)
     {
         db.Entry(captchas).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.imageComplex = new SelectList(db.imagesComplex, "id", "description", captchas.imageComplex);
     ViewBag.imageFormat = new SelectList(db.imagesFormat, "id", "description", captchas.imageFormat);
     ViewBag.soundFormat = new SelectList(db.soundsFormat, "id", "description", captchas.soundFormat);
     return View(captchas);
 }