Ejemplo n.º 1
0
 private async Task SyncTable <T>(ModelsService <T> service) where T : class
 {
     foreach (var item in service.GetAll())
     {
         await networkService.Add(new DataTransaction()
         {
             Action = DataTransaction.ActionType.Create,
             Data   = item,
             Type   = DataTransaction.MatchType(item)
         });
     }
 }