private string _getTabRef(Lookup per) { if (per != null) return "/Config/Edit/" + Convert.ToString(per.ID); else return null; }
public ActionResult Create(Lookup lookup, string userName) { //Lookup lookup = null; UpdateModel(lookup); lookup = serv.Create(lookup, userName); return Json(new { sNewRef = _getTabRef(lookup), sNewLabel = _getTabLabel(lookup), iNewID = (lookup == null ? 0 : lookup.ID) }, JsonRequestBehavior.AllowGet); }
private string _getTabLabel(Lookup per) { if (per != null) return per.text_EN; else return null; }
public ActionResult Create() { var _model = new Lookup(); return PartialView(_model); }