示例#1
0
文件: Topic.cs 项目: daywrite/EApp
        public static Topic Create(string name, string summary, DateTime expiredDate)
        {
            Topic topic = new Topic();

            topic.Name = name;
            topic.Summary = summary;
            topic.ExpiredDate = expiredDate;

            return topic;
        }
示例#2
0
文件: Post.cs 项目: daywrite/EApp
 public Post(Topic topic, User author, string content)
 {
     this.topic = topic;
     this.author = author;
     this.content = content;
 }
示例#3
0
文件: Post.cs 项目: daywrite/EApp
 public static Post Create(Topic topic, User author, string content)
 {
     return new Post(topic, author, content);
 }