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