public ActionResult UnForbidUser() { string userName = Request.Form["UserName"].ToString(); Users model = (new bizUsers()).Get(userName); if (model == null) return Content("���û�������"); bizUserForbid b = new bizUserForbid(); b.DeleteByUserName(userName); return Content(""); }
public ActionResult ForbidUser() { string userName = Request.Form["UserName"].ToString(); string ForbidTime = Request.Form["ForbidTime"].ToString(); string Remark = Request.Form["Remark"].ToString(); bizUserForbid b = new bizUserForbid(); string result = b.Add(userName, Remark, ForbidTime, UserName); return Content(result); }