Пример #1
0
 private string _getTabRef(Lookup per)
 {
     if (per != null) return "/Config/Edit/" + Convert.ToString(per.ID);
     else return null;
 }
Пример #2
0
        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);
        }
Пример #3
0
 private string _getTabLabel(Lookup per)
 {
     if (per != null) return per.text_EN;
     else return null;
 }
Пример #4
0
 public ActionResult Create()
 {
     var _model = new Lookup();
     return PartialView(_model);
 }