Esempio n. 1
0
        private async Task AddHistoryRecordAsync(History item)
        {
            var id = await HistoryService.AddItemAsync(Mapper.Map <HistoryDto>(item));

            item.Id = id;

            Device.BeginInvokeOnMainThread(() => {
                History.Insert(0, item);
            });
        }