public AddStoryViewModel(Story story, IPageService pageService) { StoryItem = story; this.pageService = pageService; SubmitCommand = new Command(async() => await SubmitAsync()); }
private async Task GoToStoryEditView(Story story) { await pageService.PushAsync(new Stories(story)); }
private async Task DeleteStory(Story story) { StoryList.Remove(story); await service.DeleteStoryAsync(story); }
public async Task DeleteStoryAsync(Story storyItem) { var content = JsonConvert.SerializeObject(storyItem); await client.PostAsync(baseUrl + storyQuery + deleteAction, new StringContent(content)); }