@model List @{ Layout = "~/Views/Shared/_AdminLayout.cshtml"; ViewData["Title"] = "Blog Posts"; }
Blog Posts
Create Post
@foreach (var post in Model) { }
Title Slug Published Created Actions
@post.Title @post.Slug @(post.IsPublished ? "Yes" : "No") @post.CreatedAt.ToString("MMM dd, yyyy") Edit