Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A model class to return from our API contoller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Umbracov9AlphaAPIs.APIModels
{
public class BlogPostModel
{
public string Title { get; init; }
public string Preview { get; init; }
public string Url { get; init; }
public DateTime PublishedDate { get; init; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment