public ActionResult CreateOrEdit(Material material) { if (this.ModelState.IsValid) { material = materialService.CreateOrEditMaterial(material); return(RedirectToAction("Index")); } ViewBag.UnityTypes = new SelectList(unityTypeService.GetUnityTypes(), "UnityTypeId", "Description"); return(View("Form", material)); }