// GET: Items/Details/5 public async Task <IActionResult> Details(long?id) { var result = await _itemService.GetAsync(id); if (result == null) { return(NotFound()); } return(View(result)); }
public async Task LoadAsync() { IsBusy = true; try { Loads = await _LoadsService.GetAsync(SelectedDate); foreach (var load in Loads) { load.Items = new ObservableCollection <Item>(await _ItemsService.GetAsync(load.LoadId)); } } catch (Exception e) { var dialog = new MessageDialog(e.Message); await dialog.ShowAsync(); } finally { IsBusy = false; } }
public async Task <IList <Item> > Get(int loadId) { return(await _ItemsService.GetAsync(loadId)); }