private async void BtnPost_Clicked(System.Object sender, System.EventArgs e) { var post = new Post(); post.DishName = Dish.Text; post.preparedBy = Name.Text; post.Instructions = Instructions.Text; post.Ingredients = Ingredients.Text; var response = await ApiService.AddPost(post); if (response == null) { return; } var dishId = response.id; await Navigation.PushAsync(new AddImagePage(dishId)); }