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