Esempio n. 1
0
        private void AddComment(HttpContext context)
        {
            string comments = context.Request.Params["comments"];
            int    id       = int.Parse(context.Request.Params["id"]);

            PindexProd.dbml.Comments c = new PindexProd.dbml.Comments();
            c.Comments1             = comments;
            c.BoardsImagesMappingID = id;
            c.UserID = Common.UserID.Value;
            this.GetPindexProdContext2.Comments.InsertOnSubmit(c);
            this.GetPindexProdContext2.SubmitChanges();
        }
Esempio n. 2
0
 private void AddComment(HttpContext context)
 {
     string comments = context.Request.Params["comments"];
     int id = int.Parse(context.Request.Params["id"]);
     PindexProd.dbml.Comments c = new PindexProd.dbml.Comments();
     c.Comments1 = comments;
     c.BoardsImagesMappingID = id;
     c.UserID = Common.UserID.Value;
     this.GetPindexProdContext2.Comments.InsertOnSubmit(c);
     this.GetPindexProdContext2.SubmitChanges();
 }