diff options
author | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
commit | 76ea7c9f7295f1507bc87154b36cc0f2ea22036e (patch) | |
tree | ed6e2b0e7dcad128bf9b971e74c233d23113e284 /BackEnd/Timeline/Controllers/HighlightTimelineController.cs | |
parent | 344d189e5860a20ebe42cec03b86974a2a3aaa95 (diff) | |
download | timeline-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.cs | 6 |
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();
}
|