rewrite number whatever to .net and blazor.

This commit is contained in:
Blake Ridgway
2026-02-08 21:05:52 -06:00
parent 3f7814d9c8
commit 6ae71b0216
51 changed files with 4531 additions and 1547 deletions

23
Models/Newsletter.cs Normal file
View File

@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace landing.Models;
[Table("newsletters")]
public class Newsletter
{
[Key]
[Column("id")]
public int Id { get; set; }
[Required]
[Column("subject")]
public string Subject { get; set; } = string.Empty;
[Required]
[Column("body")]
public string Body { get; set; } = string.Empty;
[Column("sent_at")]
public DateTime SentAt { get; set; } = DateTime.UtcNow;
}