BlazorBlog created. I don't know where I was at...
This commit is contained in:
27
BlazorBlog/Data/BlogPost.cs
Normal file
27
BlazorBlog/Data/BlogPost.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BlazorBlog.Data
|
||||
{
|
||||
public class BlogPost
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Author { get; set; }
|
||||
public DateTime Posted { get; set; }
|
||||
public string Post { get; set; }
|
||||
public string PostSummary
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Post.Length > 50)
|
||||
return Post.Substring(0, 50);
|
||||
|
||||
return Post;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user