Esempio n. 1
0
 public Int32 SaveComment(Int32 id, Int32 parentId, Common.CommentType type) {
     CheckMenuComment query = new CheckMenuComment();
     try {
         using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) {
             query.Type = (Int32)type;
             query.ParentId = parentId;
             query.CommentId = id;
             db.CheckMenuComments.InsertOnSubmit(query);
             db.SubmitChanges();
         }
     }
     catch (Exception ex) {
     }
     return query.id;
 }
 partial void UpdateCheckMenuComment(CheckMenuComment instance);
 partial void DeleteCheckMenuComment(CheckMenuComment instance);
 partial void InsertCheckMenuComment(CheckMenuComment instance);