public ActionResult SaveMoney(FormCollection f) { if (LastPostTime.AddSeconds(5) > DateTime.Now) { TempData["Msg"] = "��������ٶ�̫�졣"; return RedirectToAction("selfBank"); } LastPostTime = DateTime.Now; int btn = int.Parse(f["btn"]); bizUsers bu = new bizUsers(); string result = ""; if (btn == 1) result=bu.SaveMoney(UserID, int.Parse(f["txtSaveMoney"])); if (btn == 2) result=bu.OutMoney(UserID, int.Parse(f["txtOutMoney"])); if (result != "") TempData["Msg"] = result; return RedirectToAction("selfBank"); }