Add client-side Notes page with API integration and shared contracts

This commit is contained in:
Chuck Smith
2026-02-22 15:24:56 -05:00
parent 9cf0cbadd6
commit 6a1aed8e13
17 changed files with 678 additions and 193 deletions

View File

@@ -0,0 +1,10 @@
using System.ComponentModel.DataAnnotations;
namespace Freman.Sample.Web.Contracts;
public sealed class CreateNoteRequest
{
[Required]
[StringLength(500)]
public string Text { get; set; } = "";
}

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,3 @@
namespace Freman.Sample.Web.Contracts;
public sealed record NoteDto(int Id, string Text, DateTime CreatedUtc);