Esempio n. 1
0
        public ActionResult Edit(Module module)
        {
            if (ModelState.IsValid)
            {
                var moduleModel = new ModuleModel();

                var updatedModule = moduleModel.EditModule(module.Module_Id, module.Description, module.Base_URL);

                if (updatedModule == null)
                {
                    ViewBag.Message = "An Error Occured, Please contact Support";
                    return(View(module));
                }

                return(RedirectToAction("Index", "Module"));
            }

            return(View(module));
        }