public ActionResult IndustryCreateEdit(industry_type industry_type) { result = industryUtil.CreateEditIndustryType(industry_type); ViewBag.Title = industry_type == null ? "Country Create" : "Country Edit"; ViewBag.action_name = STUtil.GetListAllActionByController(""); return(Json(result)); }
public ActionResult IndustryTypeIndex(string id) { STUtil.SetSessionValue(UserInfo.pageTitle.ToString(), "Industry Type"); industry_type c = new industry_type(); if (id != null && id != "") { c = db.industry_type.Find(Convert.ToInt32(id)); } return(View(c)); }