public JsonResult GetPartialModel(ChannelInfoModel channelInfo) { var service = ServicesFactory.GetTweetsService(); var model = service.GetPartialTweetsModel(channelInfo.ChannelId, channelInfo.ChannelName); return(Json(new { status = "ok", model = model })); }
public ViewResult GetTweets(int id) { try { var service = ServicesFactory.GetTweetsService(); var model = service.GetTweetsModel(id); return(View(model)); } catch (Exception exception) { return(View()); } }