Пример #1
0
 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));
 }
Пример #2
0
        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));
        }