aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/HighlightTimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-05-05 15:58:40 +0800
committercrupest <crupest@outlook.com>2021-05-05 15:58:40 +0800
commit4b413d32ef7b21bc2e35086ae0e695438eec6d43 (patch)
treea5e99c70ca24e827730b15f3ea3aa8664badc24d /BackEnd/Timeline/Controllers/HighlightTimelineController.cs
parentcc6d33511a6a4c43630a36b13d03db57f432520c (diff)
downloadtimeline-4b413d32ef7b21bc2e35086ae0e695438eec6d43.tar.gz
timeline-4b413d32ef7b21bc2e35086ae0e695438eec6d43.tar.bz2
timeline-4b413d32ef7b21bc2e35086ae0e695438eec6d43.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Controllers/HighlightTimelineController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/HighlightTimelineController.cs6
1 files changed, 3 insertions, 3 deletions
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
/// </summary>
[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<ActionResult<CommonPutResponse>> 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<ActionResult<CommonDeleteResponse>> 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);
}