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