8.0: NoteDetail Model
Create the NoteDetail Model
NoteDetail Modelnamespace ElevenNote.Models { public class NoteDetail { public int NoteId { get; set; } public string Title { get; set; } public string Content { get; set; } public DateTimeOffset CreatedUtc { get; set; } public DateTimeOffset? ModifiedUtc { get; set; } public override string ToString() => $"[{NoteId}] {Title}"; } }[Display(Name="Created")] public DateTimeOffset CreatedUtc { get; set; } [Display(Name="Modified")] public DateTimeOffset? ModifiedUtc { get; set; }
Details() Method
Details() MethodGetNoteById() Method
GetNoteById() MethodLast updated