Пример #1
0
        private void AddComment(HttpContext context)
        {
            string comments = context.Request.Params["comments"];
            int    id       = int.Parse(context.Request.Params["id"]);

            EyeShadow.dbml.Comments c = new EyeShadow.dbml.Comments();
            c.Comments1             = comments;
            c.BoardsImagesMappingID = id;
            c.UserID = Common.UserID.Value;
            this.GetEyeShadowContext2.Comments.InsertOnSubmit(c);
            this.GetEyeShadowContext2.SubmitChanges();
        }
Пример #2
0
 private void AddComment(HttpContext context)
 {
     string comments = context.Request.Params["comments"];
     int id = int.Parse(context.Request.Params["id"]);
     EyeShadow.dbml.Comments c = new EyeShadow.dbml.Comments();
     c.Comments1 = comments;
     c.BoardsImagesMappingID = id;
     c.UserID = Common.UserID.Value;
     this.GetEyeShadowContext2.Comments.InsertOnSubmit(c);
     this.GetEyeShadowContext2.SubmitChanges();
 }