aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-29 19:29:35 +0800
committercrupest <crupest@outlook.com>2021-04-29 19:29:35 +0800
commitbf4c48980f81e566065c07f3fe534ce7551ebdcc (patch)
treeb34c57efd216c5b94845a298ffcb7480d773784c /BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
parentfc9eb47119dd33d67c1e4daba18608bfb3355f54 (diff)
downloadtimeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.tar.gz
timeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.tar.bz2
timeline-bf4c48980f81e566065c07f3fe534ce7551ebdcc.zip
...
Diffstat (limited to 'BackEnd/Timeline/Controllers/BookmarkTimelineController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/BookmarkTimelineController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs b/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
index e7ffa5c5..cbc96fc6 100644
--- a/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
+++ b/BackEnd/Timeline/Controllers/BookmarkTimelineController.cs
@@ -44,7 +44,7 @@ namespace Timeline.Controllers
[ProducesResponseType(401)]
public async Task<ActionResult<List<HttpTimeline>>> List()
{
- var ids = await _service.GetBookmarks(this.GetUserId());
+ var ids = await _service.GetBookmarksAsync(this.GetUserId());
var timelines = await _timelineService.GetTimelineList(ids);
return await Map(timelines);
}
@@ -63,7 +63,7 @@ namespace Timeline.Controllers
try
{
var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline);
- var create = await _service.AddBookmark(this.GetUserId(), timelineId);
+ var create = await _service.AddBookmarkAsync(this.GetUserId(), timelineId);
return CommonPutResponse.Create(create);
}
catch (TimelineNotExistException)
@@ -86,7 +86,7 @@ namespace Timeline.Controllers
try
{
var timelineId = await _timelineService.GetTimelineIdByNameAsync(timeline);
- var delete = await _service.RemoveBookmark(this.GetUserId(), timelineId);
+ var delete = await _service.RemoveBookmarkAsync(this.GetUserId(), timelineId);
return CommonDeleteResponse.Create(delete);
}
catch (TimelineNotExistException)
@@ -109,7 +109,7 @@ namespace Timeline.Controllers
try
{
var timelineId = await _timelineService.GetTimelineIdByNameAsync(request.Timeline);
- await _service.MoveBookmark(this.GetUserId(), timelineId, request.NewPosition!.Value);
+ await _service.MoveBookmarkAsync(this.GetUserId(), timelineId, request.NewPosition!.Value);
return Ok();
}
catch (TimelineNotExistException)