public ActionResult BugDeal(FormCollection f) { int bugID = int.Parse(f["bugID"]); byte status = byte.Parse(f["status"]); bizBugs b = new bizBugs(); b.Deal(bugID, status); return Content(""); }
public ActionResult PostBug(Bugs model) { int userID = UserID; if (model.Info == null || model.Info == "") { TempData["Msg"] = "��������Ϊ��"; return View(); } if ((new bizUserForbid()).GetByUserID(userID) != null) { TempData["Msg"] = "�����ڽ����ڼ䣬��Ͷ�ߡ�"; return View(); } bizBugs bb = new bizBugs(); Bugs modelPrev = bb.GetNewByUser(userID); if (modelPrev != null && modelPrev.AddTime.AddMinutes(3) > DateTime.Now) { TempData["Msg"] = "���ύ���ٶȹ��죬���Ժ����ύ��"; return View(); } model.UserID = userID; model.UserName = UserName; bb.Add(model); TempData["Msg"] = "�����Ϣ�Ѿ��ɹ��ύ����л������ǵ�֧�֡�"; return View(); }