public TaskListViewModel(ITaskController controller) { _controller = controller; Tasks = new ObservableCollection <TaskModel>(controller.LoadTasks().GetAwaiter().GetResult()); }