From 5f93daed17338abbcade5eaba8936acbc4955b56 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 3 Feb 2020 17:50:17 +0800 Subject: Add TimelineController. --- Timeline/Models/Http/TimelineController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Timeline/Models/Http/TimelineController.cs') diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs index f9a4d3e5..6d461bb9 100644 --- a/Timeline/Models/Http/TimelineController.cs +++ b/Timeline/Models/Http/TimelineController.cs @@ -1,5 +1,6 @@ using System; using System.ComponentModel.DataAnnotations; +using Timeline.Models.Validation; namespace Timeline.Models.Http { @@ -11,6 +12,13 @@ namespace Timeline.Models.Http public DateTime? Time { get; set; } } + public class TimelineCreateRequest + { + [Required] + [TimelineName] + public string Name { get; set; } = default!; + } + public class TimelinePatchRequest { public string? Description { get; set; } -- cgit v1.2.3