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