Exemple #1
0
        public ActionResult FComment(int id,FormCollection f)
        {
            if (FactionID != id)
                return RedirectToAction("FAdminAlert", new { id = id });

            bizFComment bfc = new bizFComment();
            FComment model = new FComment();
            model.FactionID = id;
            model.AddUser = UserID;
            model.UserName = UserName;
            model.AddTime = DateTime.Now;
            model.CommentObject = 1;
            model.Content = f["content"].Trim();
            model.Status = 1;
            bfc.Add(model);
            return RedirectToAction("FComment", new { id = id });
        }