public TaskViewModel(ITaskController controller, string id) { _controller = controller; Task = _controller.LoadTask(id).GetAwaiter().GetResult(); Tasks = new ObservableCollection <TaskText>(Task.List); }