public Int32 Save(String commentText, Int32 customerId) { Comment query = new Comment(); try { using (menuzRusDataContext db = new menuzRusDataContext(base.connectionString)) { query.CommentText = commentText; query.CustomerId = customerId; query.DateModified = DateTime.UtcNow; db.Comments.InsertOnSubmit(query); db.SubmitChanges(); } } catch (Exception ex) { } return query.id; }
partial void UpdateComment(Comment instance);
partial void DeleteComment(Comment instance);
partial void InsertComment(Comment instance);