Felbook.Models.Comment.CreateComment C# (CSharp) Method

CreateComment() public static method

Create a new Comment object.
public static CreateComment ( global id, global text, global created, global userId ) : Comment
id global Initial value of the Id property.
text global Initial value of the Text property.
created global Initial value of the Created property.
userId global Initial value of the UserId property.
return Comment
        public static Comment CreateComment(global::System.Int32 id, global::System.String text, global::System.DateTime created, global::System.Int32 userId)
        {
            Comment comment = new Comment();
            comment.Id = id;
            comment.Text = text;
            comment.Created = created;
            comment.UserId = userId;
            return comment;
        }