public ActionResult ReligionCreateEdit(religion religion) { result = religionUtil.CreateEditReligion(religion); ViewBag.Title = religion == null ? "Religion Create" : "Religion Edit"; ViewBag.action_name = STUtil.GetListAllActionByController(""); return(Json(result)); }
public ActionResult ReligionIndex(string id) { STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Religion"); religion c = new religion(); if (id != null && id != "") { c = db.religions.Find(Convert.ToInt32(id)); } return(View(c)); }