From b87abbb8ed0aa86a808b2f97e4d22b0ee1addd9f Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 29 Apr 2021 19:29:35 +0800 Subject: ... --- BackEnd/Timeline/Controllers/BookmarkTimelineController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'BackEnd/Timeline/Controllers/BookmarkTimelineController.cs') 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>> 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) -- cgit v1.2.3