コード例 #1
0
        public ActionResult Delete(Module module)
        {
            var moduleModel   = new ModuleModel();
            var deletedModule = moduleModel.SetModuleIsDeleted(module.Module_Id, true);

            if (deletedModule == null)
            {
                ViewBag.Message = "An Error Occured, Contact support";
                return(View(module));
            }

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