Ejemplo n.º 1
0
        public async Task <IActionResult> ChangeStatus(int todoId, int projectId, string status)
        {
            await _todoRepository.ChangeTodoStatus(todoId, status).ConfigureAwait(true);

            await _projectRepository.CalculateCompletion(projectId).ConfigureAwait(true);

            return(RedirectToRoute("todos", new { id = projectId }));
        }