コード例 #1
0
        public JsonResult GetPartialModel(ChannelInfoModel channelInfo)
        {
            var service = ServicesFactory.GetTweetsService();
            var model   = service.GetPartialTweetsModel(channelInfo.ChannelId, channelInfo.ChannelName);

            return(Json(new { status = "ok", model = model }));
        }
コード例 #2
0
 public ViewResult GetTweets(int id)
 {
     try
     {
         var service = ServicesFactory.GetTweetsService();
         var model   = service.GetTweetsModel(id);
         return(View(model));
     }
     catch (Exception exception)
     {
         return(View());
     }
 }