Example #1
0
 public ActionResult TagEdit(string id)
 {
     return(RunActionWhenLogin((loginuser) =>
     {
         if (ValidateHelper.IsPlumpString(id))
         {
             var model = _TagBll.GetTagByID(id);
             ViewData["model"] = model;
         }
         return View();
     }));
 }
Example #2
0
 public ActionResult TagEdit(int?id)
 {
     return(RunActionWhenLogin((loginuser) =>
     {
         id = id ?? 0;
         if (id > 0)
         {
             var model = _TagBll.GetTagByID(id.Value);
             ViewData["model"] = model;
         }
         return View();
     }, PermissionList: null));
 }