From 415a91f08422a9a18958552ec21a25f336ef81c4 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 31 Jan 2021 15:42:52 +0800 Subject: ... --- BackEnd/Timeline/Models/Http/TimelineController.cs | 25 ++++++---------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'BackEnd/Timeline/Models/Http/TimelineController.cs') diff --git a/BackEnd/Timeline/Models/Http/TimelineController.cs b/BackEnd/Timeline/Models/Http/TimelineController.cs index 257076f0..79be1826 100644 --- a/BackEnd/Timeline/Models/Http/TimelineController.cs +++ b/BackEnd/Timeline/Models/Http/TimelineController.cs @@ -58,6 +58,12 @@ namespace Timeline.Models.Http /// public class HttpTimelinePatchRequest { + /// + /// New name. Null for not change. + /// + [TimelineName] + public string? Name { get; set; } + /// /// New title. Null for not change. /// @@ -74,25 +80,6 @@ namespace Timeline.Models.Http public TimelineVisibility? Visibility { get; set; } } - /// - /// Change timeline name request model. - /// - public class HttpTimelineChangeNameRequest - { - /// - /// Old name of timeline. - /// - [Required] - [TimelineName] - public string OldName { get; set; } = default!; - /// - /// New name of timeline. - /// - [Required] - [TimelineName] - public string NewName { get; set; } = default!; - } - public class HttpTimelineControllerAutoMapperProfile : Profile { public HttpTimelineControllerAutoMapperProfile() -- cgit v1.2.3