Пример #1
0
        public async static Task <bool> Delete(info inf)
        {
            try
            {
                await App.postsTable.DeleteAsync(inf);

                await App.MobileService.SyncContext.PushAsync();

                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Пример #2
0
 public static async void Update(info selecteditem)
 {
     await App.MobileService.GetTable <info>().UpdateAsync(selecteditem);
 }
Пример #3
0
        public async static void Insert(info inf)
        {
            await App.postsTable.InsertAsync(inf);

            await App.MobileService.SyncContext.PushAsync();
        }