private async void InitialData()
        {
            var result = await CoreMethod.GetHome();

            if (result.Status == "OK")
            {
                var home = result.Data as Home;
                carousel.ItemsSource     = home.Ones;
                carousel.PageIndex       = 0;
                listArticle.ItemsSource  = home.Articles;
                listQuestion.ItemsSource = home.Questions;
            }
        }
Beispiel #2
0
 public async Task <ModelBase> Get()
 {
     return(await CoreMethod.GetHome());
 }