Beispiel #1
0
            public async Task <int> AddChildScans(AddChildScansModel model)
            {
                try
                {
                    return(await RestClient.Instance.PostAsync <int>($"{KamajiScanActions.AddChildScans}", model));
                }
                catch (Exception ex)
                {
                    await OfflineData.From(model, nameof(EditScan), ex).SaveAsync();

                    return(-1);
                }
            }
Beispiel #2
0
            public async Task <int> SaveScanInstanceOrEditResult(ScanInstanceModel model)
            {
                try
                {
                    return(await RestClient.Instance.PostAsync <int>($"{KamajiScanActions.SaveScanInstanceOrEditResult}", model));
                }
                catch (Exception ex)
                {
                    await OfflineData.From(model, nameof(SaveScanInstanceOrEditResult), ex).SaveAsync();

                    return(-1);
                }
            }