aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/HighlightTimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-28 17:16:45 +0800
committercrupest <crupest@outlook.com>2021-04-28 17:16:45 +0800
commit76ea7c9f7295f1507bc87154b36cc0f2ea22036e (patch)
treeed6e2b0e7dcad128bf9b971e74c233d23113e284 /BackEnd/Timeline/Controllers/HighlightTimelineController.cs
parent344d189e5860a20ebe42cec03b86974a2a3aaa95 (diff)
downloadtimeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.gz
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.bz2
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.zip
...
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 2f1f898e..4facc4a1 100644
--- a/BackEnd/Timeline/Controllers/HighlightTimelineController.cs
+++ b/BackEnd/Timeline/Controllers/HighlightTimelineController.cs
@@ -62,7 +62,7 @@ namespace Timeline.Controllers
{
try
{
- var timelineId = await _timelineService.GetTimelineIdByName(timeline);
+ var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline);
var create = await _service.AddHighlightTimeline(timelineId, this.GetUserId());
return CommonPutResponse.Create(create);
}
@@ -86,7 +86,7 @@ namespace Timeline.Controllers
{
try
{
- var timelineId = await _timelineService.GetTimelineIdByName(timeline);
+ var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline);
var delete = await _service.RemoveHighlightTimeline(timelineId, this.GetUserId());
return CommonDeleteResponse.Create(delete);
}
@@ -109,7 +109,7 @@ namespace Timeline.Controllers
{
try
{
- var timelineId = await _timelineService.GetTimelineIdByName(body.Timeline);
+ var timelineId = await _timelineService.GetTimelineIdByNameAsync(body.Timeline);
await _service.MoveHighlightTimeline(timelineId, body.NewPosition!.Value);
return Ok();
}