Exemple #1
0
 public ActionResult Find(int id)
 {
   ActionInfo actionInfo=  ActionInfoService.GetEntites(u=>u.Id==id).FirstOrDefault();
     List<ActionInfo> list=new List<ActionInfo>();
     list.Add(actionInfo);
     return Json(list, JsonRequestBehavior.AllowGet);
    
 }
Exemple #2
0
        public ActionResult EditPost(int id,string actionname,string remark,string httpmethod,string url,string ismenu,string sort,string menuicon)
        {
            
            ActionInfo actionInfo = ActionInfoService.GetEntites(u => u.Id == id).FirstOrDefault();
            actionInfo.Id = id;
            actionInfo.ActionName = actionname;
            actionInfo.HttpMethod = httpmethod;
            actionInfo.Url = url;
            actionInfo.IsMenu = Convert.ToBoolean(ismenu);
            actionInfo.Sort = Convert.ToInt32(sort);
            actionInfo.Remark = remark;
            
            actionInfo.Modfiedon = DateTime.Now.ToString();
            actionInfo.MenuIcon = menuicon;
            

            ActionInfoService.Update(actionInfo);
            return Content("ok");
        }
Exemple #3
0
 public ActionResult Edit(int id)
 {
     ViewData.Model = ActionInfoService.GetEntites(u=>u.Id==id).FirstOrDefault();
     return View();
 }
Exemple #4
0
 public ActionResult Index()
 {
     ViewData.Model = ActionInfoService.GetEntites(a => a.DelFlag == delflagNormal).ToList();
     return View();
 }