Example #1
0
 public async Task Vote(Option option)
 {
     //Items.First(x => x.Id == option.Id).Count++;
     await MobileService.GetTable<Vote>().InsertAsync(new Vote { OptionId = option.Id } );
 }
Example #2
0
 public async Task AddItem(Option option)
 {
    // option.Id = Items.Count;
     await MobileService.GetTable<Option>().InsertAsync(option);
     Items.Add(option);
 }