public JsonResult DeletePastureFodder(string fodderID) { FodderBLL fBLL = new FodderBLL(); int temp = fBLL.DeletePastureFodder(Int32.Parse(fodderID)); string s = temp == 1 ? "成功删除饲料!" : "未删除。"; return(Json(new { Msg = s }, JsonRequestBehavior.AllowGet)); }