public ActionResult Create(Module module) { if (ModelState.IsValid) { var moduleModel = new ModuleModel(); var createModule = moduleModel.CreateModule(module.Description, module.Base_URL, module.Is_Active); if (createModule == null) { ViewBag.Message = "An Error Occured, Please contact Support"; return(View(module)); } return(RedirectToAction("Index", "Module")); } return(View(module)); }