Exemplo n.º 1
0
        public async Task <bool> DeleteTaskAsync([FromQuery] int taskId)
        {
            TaskModel task             = taskHandler.GetTask(taskId);
            var       deleteTaskResult = taskHandler.DeleteTask(task);
            var       deletePt         = await pth.DeletePlayerTaskAsync(task);

            var deleteGt = gth.DeleteGameTasks(taskId);

            return(deleteTaskResult && deletePt && deleteGt);
        }