public IActionResult Finish(int id) { if (id != 0) { _taskListService.FinishTask(id); } return(RedirectToAction("Index")); }