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