public async Task RemoveEntryAsync(CateringEntry entry) { var url = new Uri(_baseUri, string.Format("entry/{0}", entry.Id)); var response = await SendRequestAsync <CateringEntry>(url, HttpMethod.Delete, _headers); }
public async Task <CateringEntry> AddEntryAsync(CateringEntry entry) { var url = new Uri(_baseUri, "/entry"); var response = await SendRequestAsync <CateringEntry>(url, HttpMethod.Post, _headers, entry); return(response); }
public async Task <CateringEntry> UpdateEntryAsync(CateringEntry entry) { var url = new Uri(_baseUri, string.Format("/entry/{0}", entry.Id)); var response = await SendRequestAsync <CateringEntry>(url, new HttpMethod("PATCH"), _headers, entry); return(response); }
// ... async Task ExecuteSelectPlaceCommand() { var newItem = new CateringEntry { Title = Title, Latitude = Latitude, Longitude = Longitude, Date = Date, Notes = Notes }; await NavService.NavigateTo <SelectPlaceViewModel, CateringEntry>(newItem); }
async Task ExecuteViewCommand(CateringEntry entry) { await NavService.NavigateTo <DetailViewModel, CateringEntry>(entry); }