コード例 #1
0
        public ActionResult Edit(TopButtonModel model)
        {
            model.UpdateTime   = DateTime.Now;
            model.UpdateUserId = Operator.UserId;
            var result = TopButtonService.UpdateById(model) ? SuccessTip("修改成功") : ErrorTip("修改失败");

            return(Json(result));
        }
コード例 #2
0
        public ActionResult Add(TopButtonModel model)
        {
            model.CreateTime   = DateTime.Now;
            model.CreateUserId = Operator.UserId;
            model.UpdateTime   = DateTime.Now;
            model.UpdateUserId = Operator.UserId;
            var result = TopButtonService.Insert(model) ? SuccessTip("添加成功") : ErrorTip("添加失败");

            return(Json(result));
        }
コード例 #3
0
        public JsonResult List(TopButtonModel model, PageInfo pageInfo)
        {
            var result = TopButtonService.GetListByFilter(model, pageInfo);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }