public string GetTwitterAccountDetailsById(string UserId, string ProfileId)
 {
     Domain.Socioboard.Domain.TwitterAccount objTwitterAccount = new Domain.Socioboard.Domain.TwitterAccount();
     try
     {
         if (objTwitterAccountRepository.checkTwitterUserExists(ProfileId, Guid.Parse(UserId)))
         {
             objTwitterAccount = objTwitterAccountRepository.GetUserInformation(Guid.Parse(UserId), ProfileId);
         }
         else
         {
             objTwitterAccount = objTwitterAccountRepository.getUserInformation(ProfileId);
         }
         return(new JavaScriptSerializer().Serialize(objTwitterAccount));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
Exemplo n.º 2
0
 public string getUserInformation(string TwtUserId)
 {
     try
     {
         Domain.Socioboard.Domain.TwitterAccount objTwitterAccount = objTwitterAccountRepository.getUserInformation(TwtUserId);
         return(new JavaScriptSerializer().Serialize(objTwitterAccount));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }