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); }
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"); }
public ActionResult Edit(int id) { ViewData.Model = ActionInfoService.GetEntites(u=>u.Id==id).FirstOrDefault(); return View(); }
public ActionResult Index() { ViewData.Model = ActionInfoService.GetEntites(a => a.DelFlag == delflagNormal).ToList(); return View(); }