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); } }
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); } }