public string getFacebookAccountDetailsById(string UserId, string ProfileId) { try { Domain.Socioboard.Domain.FacebookAccount objFacebookAccount = new Domain.Socioboard.Domain.FacebookAccount(); if (objFacebookAccountRepository.checkFacebookUserExists(ProfileId, Guid.Parse(UserId))) { objFacebookAccount = objFacebookAccountRepository.getFacebookAccountDetailsById(ProfileId, Guid.Parse(UserId)); return(new JavaScriptSerializer().Serialize(objFacebookAccount)); } else { objFacebookAccount = objFacebookAccountRepository.getUserDetails(ProfileId); return(new JavaScriptSerializer().Serialize(objFacebookAccount)); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); return("Something Went Wrong"); } }
public string IsFacebookuserExist(string UserId, string ProfileId) { string str = string.Empty; try { bool ret = objFacebookAccountRepository.checkFacebookUserExists(ProfileId, Guid.Parse(UserId)); if (ret == false) { str = "False"; } else { str = "True"; } return(new JavaScriptSerializer().Serialize(ret)); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); return("Something Went Wrong"); } }