website/Website/Models/BlogPost.cs
2019-04-18 19:28:58 +01:00

32 lines
No EOL
630 B
C#

using System;
using Website.Data.States;
namespace Website.Models
{
public class BlogPost
{
public BlogPost(BlogPostState state)
{
Id = state.Post_Id;
Title = state.Post_Title;
Content = state.Post_Content;
Timestamp = state.Post_Timestamp;
Draft = state.Post_Draft;
Url = state.Post_Url;
UserId = state.User_Id;
}
public BlogPost()
{
}
public int Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public DateTime Timestamp { get; set; }
public string Draft { get; set; }
public string Url { get; set; }
public int UserId { get; set; }
}
}