Example #1
0
        public static Comment Create(int topicId, string body, int memberId)
        {
            Comment c = new Comment();

            c.TopicId  = topicId;
            c.Body     = body;
            c.MemberId = memberId;
            c.Created  = DateTime.Now;
            c.Position = (Topic.GetTopic(topicId).Replies) + 1;
            c.Exists   = true;
            c.Save();

            return(c);
        }
Example #2
0
        public static Comment Create(int topicId, string body, int memberId)
        {
            Comment c = new Comment();
            c.TopicId = topicId;
            c.Body = body;
            c.MemberId = memberId;
            c.Created = DateTime.Now;
            c.Position = (Topic.GetTopic(topicId).Replies) + 1;
            c.Exists = true;
            c.Save();

            return c;
        }