public async Task <IActionResult> CompleteTask(string id) { var task = await _storyService.GetTaskById(int.Parse(id)); await _storyService.CompleteTask(task); return(RedirectToAction(nameof(Index), new { task.Story.Id })); }