public string getTwitterFeedByProfileId(string ProfileId, string MessageId) { try { Domain.Socioboard.Domain.TwitterFeed twtfeed = objTwitterFeedRepository.getTwitterFeedByProfileId(ProfileId, MessageId); return(new JavaScriptSerializer().Serialize(twtfeed)); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); return(null); } }
public string GetTwitterFeedById(string id) { try { Domain.Socioboard.Domain.TwitterFeed twtfeed = objTwitterFeedRepository.getTwitterFeed(id); return(new JavaScriptSerializer().Serialize(twtfeed)); } catch (Exception ex) { Console.Write(ex.StackTrace); return(null); } }