public ActionResult RemoveRecommendPage() { int posId = DoRequest.GetFormInt("posid"); int rVal = -1; var res = DeleteRecommendPosition.Do(posId.ToString()); if (res != null && res.Header != null && res.Header.Result != null && res.Header.Result.Code != null) { rVal = Utils.StrToInt(res.Header.Result.Code, -1); } if (rVal == 0) { return(Json(new { error = false, message = "操作成功" })); } return(Json(new { error = true, message = "操作失败" })); }
public ActionResult RemoveList() { string idString = DoRequest.GetFormString("visitid").Trim(); if (string.IsNullOrEmpty(idString)) { return(Json(new { error = true, message = "没有选择任何项" })); } int returnValue = -1; var res = DeleteRecommendPosition.Do(idString); if (res != null && res.Header != null && res.Header.Result != null && res.Header.Result.Code != null) { returnValue = Utils.StrToInt(res.Header.Result.Code, -1); } if (returnValue == 0) { return(Json(new { error = false, message = "操作成功!" })); } return(Json(new { error = true, message = "操作失败" })); }