private async Task GetWorkItems(IEnumerable <int> ids) { try { IsBusy = true; var workItems = await _tfsService.GetWorkItems(ids); WorkItems = new ObservableCollection <WorkItem>(workItems.Value); } catch (ServiceException e) { HandleServiceException(e); } finally { IsBusy = false; } }
/// <summary> /// Get all work items of a given team project in TFS /// </summary> /// <returns></returns> public async Task <IEnumerable <WorkItemModel> > Get() { return(await Task.Run(() => _tfsService.GetWorkItems())); }