Esempio n. 1
0
        // 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));
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public async Task <IList <Item> > Get(int loadId)
 {
     return(await _ItemsService.GetAsync(loadId));
 }