public ActionResult Create(Module modules)
        {
            if (ModelState.IsValid)
            {
                db.Entry(modules).State = EntityState.Added;
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(modules);
        }
        public ActionResult Edit(ModuleModel model)
        {
            Module mod = new Module();
            mod = model.modulesEdit;

            if (ModelState.IsValid)
            {
                db.Entry(model.modulesEdit).State = EntityState.Modified; ;
                db.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(model);
        }