diff options
Diffstat (limited to 'BackEnd/Timeline/Models/Http/TimelineController.cs')
-rw-r--r-- | BackEnd/Timeline/Models/Http/TimelineController.cs | 25 |
1 files changed, 6 insertions, 19 deletions
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 @@ -59,6 +59,12 @@ namespace Timeline.Models.Http public class HttpTimelinePatchRequest
{
/// <summary>
+ /// New name. Null for not change.
+ /// </summary>
+ [TimelineName]
+ public string? Name { get; set; }
+
+ /// <summary>
/// New title. Null for not change.
/// </summary>
public string? Title { get; set; }
@@ -74,25 +80,6 @@ namespace Timeline.Models.Http public TimelineVisibility? Visibility { get; set; }
}
- /// <summary>
- /// Change timeline name request model.
- /// </summary>
- public class HttpTimelineChangeNameRequest
- {
- /// <summary>
- /// Old name of timeline.
- /// </summary>
- [Required]
- [TimelineName]
- public string OldName { get; set; } = default!;
- /// <summary>
- /// New name of timeline.
- /// </summary>
- [Required]
- [TimelineName]
- public string NewName { get; set; } = default!;
- }
-
public class HttpTimelineControllerAutoMapperProfile : Profile
{
public HttpTimelineControllerAutoMapperProfile()
|