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