public ActionResult PaperSubTypeCreateEdit(paper_sub_type paper_sub_type) { result = paperSubTypeUtill.PaperSubTypeCreateEdit(paper_sub_type); ViewBag.Title = paper_sub_type == null ? "Paper Sub Type Create" : "Paper Sub Type Edit"; ViewBag.action_name = STUtil.GetListAllActionByController(""); return(Json(result)); }
public ActionResult PaperSubType(string id) { STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Paper Sub Type"); paper_sub_type c = new paper_sub_type(); if (id != null && id != "") { c = db.paper_sub_type.Find(Convert.ToInt32(id)); } return(View(c)); }