public IQueryable <DisplayItem> GetSocialInfomation(string name)
        {
            IQueryable <DisplayItem> dislayItems = null;

            try
            {
                dislayItems = _socialMediaConnector.GetSocialInfomation(name);
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
            }
            return(dislayItems);
        }
Exemplo n.º 2
0
        public ActionResult Index(string searchName)
        {
            SocialModel socialModel = null;

            try
            {
                socialModel = new SocialModel();
                var restuls = _socialMediaConnector.GetSocialInfomation(searchName);
                socialModel.SocialMediaItems = restuls;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
            }

            return(View(socialModel));
        }