using System;
using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Blog.Web.Models
{
public class Post
{
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
public string Author { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public string[] Tags { get; set; }
public DateTime CreatedAtUtc { get; set; }
public List<Comment> Comments { get; set; }
}
} .