public ActionResult Edit(TopButtonModel model) { model.UpdateTime = DateTime.Now; model.UpdateUserId = Operator.UserId; var result = TopButtonService.UpdateById(model) ? SuccessTip("修改成功") : ErrorTip("修改失败"); return(Json(result)); }
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)); }
public JsonResult List(TopButtonModel model, PageInfo pageInfo) { var result = TopButtonService.GetListByFilter(model, pageInfo); return(Json(result, JsonRequestBehavior.AllowGet)); }