Example #1
0
 public string DeleteFacebookAccount(string UserId, string ProfileId, string GroupId, string Profiletype)
 {
     try
     {
         Domain.Socioboard.Domain.FacebookAccount facebook = objFacebookAccountRepository.getFacebookAccountDetailsByUserProfileId(ProfileId, Guid.Parse(UserId));
         if (facebook.Type != "Page")
         {
             shreathonpage.DeleteShareathonByFacebookId(facebook.FbUserId, Guid.Parse(UserId));
             Profiletype = "facebook";
         }
         else
         {
             shreathonpage.DeleteShareathonByFacebookPageId(facebook.FbUserId, Guid.Parse(UserId));
             Profiletype = "facebook_page";
         }
         shareathongrp.DeleteGroupShareathonByFacebookId(facebook.FbUserId, facebook.UserId);
         objFacebookAccountRepository.deleteFacebookUser(ProfileId, Guid.Parse(UserId));
         //objFacebookFeedRepository.deleteAllFeedsOfUser(ProfileId, Guid.Parse(UserId));
         //objFacebookMessageRepository.deleteAllMessagesOfUser(ProfileId, Guid.Parse(UserId));
         //Domain.Socioboard.Domain.Team objTeam=objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         //objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId), Profiletype);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId, Profiletype);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
Example #2
0
 public string DeleteProfileFromGroup(string profileid, string groupid, string userid)
 {
     objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(userid), profileid, Guid.Parse(groupid));
     objTeam = new Domain.Socioboard.Domain.Team();
     objTeam = objTeamRepository.GetAllTeam(Guid.Parse(groupid), Guid.Parse(userid));
     objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(profileid, objTeam.Id);
     return("");
 }
 public string DeleteGoogelAnalyticsAccount(string UserId, string ProfileId, string GroupId, string profiletype)
 {
     try
     {
         objGoogleAnalyticsAccountRepository.deleteGoogelAnalyticsUser(ProfileId, Guid.Parse(UserId));
         Domain.Socioboard.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId), profiletype);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId, profiletype);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
Example #4
0
 public string DeleteLinkedinAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         objlinkedinaccrepo.deleteLinkedinUser(ProfileId, Guid.Parse(UserId));
         objLinkedInFeedRepository.deleteAllFeedsOfUser(ProfileId, Guid.Parse(UserId));
         Domain.Socioboard.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");
     }
 }
Example #5
0
 public string DeleteTumblrAccount(string UserId, string ProfileId, string GroupId)
 {
     try
     {
         objTumblrAccountRepository.deleteTumblrUser(ProfileId, Guid.Parse(UserId));
         objTumblrFeedRepository.DeleteTumblrDataByUserid(Guid.Parse(UserId), ProfileId);
         // Domain.Socioboard.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         GroupProfileRepository objGroupProfileRepository = new GroupProfileRepository();
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId), "tumblr");
         //objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId, "tumblr");
         return(new JavaScriptSerializer().Serialize("Success"));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }
 public string DeleteTwitterAccount(string UserId, string ProfileId, string GroupId, string ProfileType)
 {
     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);
         GroupProfileRepository objGroupProfileRepository = new GroupProfileRepository();
         //Domain.Socioboard.Domain.Team objTeam = objTeamRepository.GetTeamByGroupId(Guid.Parse(GroupId));
         objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(UserId), ProfileId, Guid.Parse(GroupId), ProfileType);
         //objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(ProfileId, objTeam.Id);
         objSocialProfilesRepository.deleteProfile(Guid.Parse(UserId), ProfileId, ProfileType);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return("Something Went Wrong");
     }
 }