public JsonResult addLatestActivity(JiaJiModels.Active model) { try { var i = new JiaJiBLL.activebll().Actionadd(model); if (i > 0) { return(Json(new { Success = true, Message = "添加成功" })); } else { return(Json(new { Success = false, Message = "添加失败" })); } } catch { return(Json(new { Success = false, Message = "添加失败" })); } }
public JsonResult editLatestActivity(JiaJiModels.Active model) { try { int ActiveID = model.ActiveID; var i = new JiaJiBLL.activebll().ActiveUpd(model); if (i > 0) { return(Json(new { Success = true, Message = "修改成功" })); } else { return(Json(new { Success = false, Message = "修改失败" })); } } catch { return(Json(new { Success = false, Message = "修改失败" })); } }