Skip to content

Instantly share code, notes, and snippets.

@crgrieve
Created April 6, 2021 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crgrieve/52107762b87ab6d19693eb6009fc6a8e to your computer and use it in GitHub Desktop.
Save crgrieve/52107762b87ab6d19693eb6009fc6a8e to your computer and use it in GitHub Desktop.
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