public void DeleteGplusAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         ObjGooglePlusAccountsRepo.deleteGooglePlusUser(ProfileId, Guid.Parse(UserId));
         Domain.Myfashion.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId);
     }
     catch (Exception ex)
     {
         Console.WriteLine("DeleteGplusAccount => " + ex.Message);
     }
 }
 public string DeleteLinkedinCompanyPage(string UserId, string LinkedinPageId, string GroupId)
 {
     try
     {
         objLinkedCmpnyPgeRepo.DeleteLinkedInPageByPageid(LinkedinPageId, Guid.Parse(UserId));
         objlinkedpagepostrepo.deleteAllPostOfPage(LinkedinPageId, Guid.Parse(UserId));
         Domain.Myfashion.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(LinkedinPageId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), LinkedinPageId);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
Exemple #3
0
 public string DeleteLinkedinAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         objlinkedinaccrepo.deleteLinkedinUser(ProfileId, Guid.Parse(UserId));
         objLinkedInFeedRepository.deleteAllFeedsOfUser(ProfileId, Guid.Parse(UserId));
         Domain.Myfashion.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
 public string DeleteTumblrAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         objTumblrAccountRepository.deleteTumblrUser(ProfileId, Guid.Parse(UserId));
         objTumblrFeedRepository.DeleteTumblrDataByUserid(Guid.Parse(UserId), ProfileId);
         Domain.Myfashion.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         GroupProfileRepository       objGroupProfileRepository = new GroupProfileRepository();
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId);
         return(new JavaScriptSerializer().Serialize("Success"));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
 public string DeleteProfileByProfileId(String UserId, string ProfileId)
 {
     try
     {
         int i = sociorepo.deleteProfile(Guid.Parse(UserId), ProfileId);
         if (i == 1)
         {
             return("Profile Deleted Successfully");
         }
         else
         {
             return("Invalid UserId or ProfileId");
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
Exemple #6
0
 public string DeleteTwitterAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         objTwitterAccountRepository.deleteTwitterUser(Guid.Parse(UserId), ProfileId);
         //objTwitterFeedRepository.deleteTwitterFeed(ProfileId, Guid.Parse(UserId));
         //objTwtstats.deleteTwitterStats(Guid.Parse(UserId), ProfileId);
         //objTwitterMessageRepository.deleteTwitterMessage(ProfileId, Guid.Parse(UserId));
         //objTwitterDirectMessageRepository.deleteDirectMessage(Guid.Parse(UserId), ProfileId);
         Domain.Myfashion.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }