예제 #1
0
        ///// <summary>
        ///// �ö�����
        ///// </summary>
        ///// <param name="id"></param>
        ///// <returns></returns>
        //public ActionResult ToBallEara(int id)
        //{
        //    if (!UserCommon.CheckBBSAdminRight(AdminType))
        //        return Content("����Ȩִ�д˲���");
        //    bizBBSMainOfBall b = new bizBBSMainOfBall();
        //    BBSMainOfBall model = b.Get(id);
        //    if (model != null)
        //        return Content("�������Ѿ���������");
        //    BBSMainOfBall bModel = new BBSMainOfBall();
        //    bModel.BBSMainID = id;
        //    bModel.UserID = UserID;
        //    bModel.BallType = 2;
        //    bModel.TopType = 2;
        //    bModel.AddTime = DateTime.Now;
        //    bModel.EndTime = DateTime.Now.AddMonths(1);
        //    b.Add(bModel);
        //    return Content("�ö��ɹ�");
        //}
        /// <summary>
        /// ��Ĭ����
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Chenmo(int id)
        {
            int bbsMainID;
            byte chenmoType;
            if (!UserCommon.CheckBBSAdminRight(AdminType))
                return Content("����Ȩִ�д˲���");
            bbsMainID = int.Parse(Request.Form["bbsMainID"].ToString());
            chenmoType = byte.Parse(Request.Form["chenmoType"].ToString());
            bizBBSMain b = new bizBBSMain();
            string result = b.Chenmo(bbsMainID, UserID, UserName, chenmoType);

            return Content(result);
        }