Exemplo n.º 1
0
 public async Task <bool> SaveGroupsItemsTaskAsync(GroupItem item)
 {
     try
     {
         if (Reachability.HasInternetConnection())
         {
             if (item.ID == null)
             {
                 await groupsTable.InsertAsync(item);
             }
             else
             {
                 await groupsTable.UpdateAsync(item);
             }
             return(true);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("GroupItem Save error: " + e.Message);
     }
     return(false);
 }