Ejemplo n.º 1
0
        public static void AddReply(string repo, int number, GitHubAutoReplyType type, long commentId)
        {
            var db = ApplicationContext.Current.DatabaseContext.Database;

            var poco = new GitHubAutoReplyPoco
            {
                Repository = repo,
                Number     = number,
                Type       = (int)type,
                CommentId  = commentId,
                CreateDate = DateTime.UtcNow
            };

            db.Insert(poco);
        }
Ejemplo n.º 2
0
 internal GitHubAutoReply(GitHubAutoReplyPoco poco)
 {
     _poco = poco;
 }