aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/BookmarkTimelineController.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/BookmarkTimelineController.cs
parent344d189e5860a20ebe42cec03b86974a2a3aaa95 (diff)
downloadtimeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.gz
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.bz2
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/BookmarkTimelineController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/BookmarkTimelineController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs b/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
index 80a06c17..d941013f 100644
--- a/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
+++ b/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
@@ -63,7 +63,7 @@ namespace Timeline.Controllers
{
try
{
- var timelineId = await _timelineService.GetTimelineIdByName(timeline);
+ var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline);
var create = await _service.AddBookmark(this.GetUserId(), timelineId);
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.RemoveBookmark(this.GetUserId(), timelineId);
return CommonDeleteResponse.Create(delete);
}
@@ -109,7 +109,7 @@ namespace Timeline.Controllers
{
try
{
- var timelineId = await _timelineService.GetTimelineIdByName(request.Timeline);
+ var timelineId = await _timelineService.GetTimelineIdByNameAsync(request.Timeline);
await _service.MoveBookmark(this.GetUserId(), timelineId, request.NewPosition!.Value);
return Ok();
}