From 0accc9f09d0aaf2292cb94e3c4e438c3f76f89e5 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 5 May 2021 15:58:40 +0800 Subject: refactor: ... --- BackEnd/Timeline/Controllers/HighlightTimelineController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BackEnd/Timeline/Controllers/HighlightTimelineController.cs') diff --git a/BackEnd/Timeline/Controllers/HighlightTimelineController.cs b/BackEnd/Timeline/Controllers/HighlightTimelineController.cs index e73bc7a9..24201126 100644 --- a/BackEnd/Timeline/Controllers/HighlightTimelineController.cs +++ b/BackEnd/Timeline/Controllers/HighlightTimelineController.cs @@ -17,7 +17,7 @@ namespace Timeline.Controllers /// [ApiController] [ProducesErrorResponseType(typeof(CommonResponse))] - public class HighlightTimelineController : Controller + public class HighlightTimelineController : MyControllerBase { private readonly IHighlightTimelineService _service; private readonly ITimelineService _timelineService; @@ -61,7 +61,7 @@ namespace Timeline.Controllers public async Task> Put([GeneralTimelineName] string timeline) { var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline); - var create = await _service.AddHighlightTimelineAsync(timelineId, this.GetUserId()); + var create = await _service.AddHighlightTimelineAsync(timelineId, GetUserId()); return CommonPutResponse.Create(create); } @@ -78,7 +78,7 @@ namespace Timeline.Controllers public async Task> Delete([GeneralTimelineName] string timeline) { var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline); - var delete = await _service.RemoveHighlightTimelineAsync(timelineId, this.GetUserId()); + var delete = await _service.RemoveHighlightTimelineAsync(timelineId, GetUserId()); return CommonDeleteResponse.Create(delete); } -- cgit v1.2.3