Exemplo n.º 1
0
 public string DeleteProfileFromGroup(string profileid, string groupid, string userid, string ProfileType)
 {
     objGroupProfileRepository.DeleteGroupProfile(Guid.Parse(userid), profileid, Guid.Parse(groupid), ProfileType);
     objTeam = new Domain.Socioboard.Domain.Team();
     objTeam = objTeamRepository.GetAllTeam(Guid.Parse(groupid), Guid.Parse(userid));
     objTeamMemberProfileRepository.DeleteTeamMemberProfileByTeamIdProfileId(profileid, objTeam.Id);
     return("");
 }
Exemplo n.º 2
0
 public string AddProfileToGroup(string profileid, string network, string groupid, string userid)
 {
     objGroupProfile              = new Domain.Socioboard.Domain.GroupProfile();
     objGroupProfile.Id           = Guid.NewGuid();
     objGroupProfile.GroupId      = Guid.Parse(groupid);
     objGroupProfile.ProfileId    = profileid;
     objGroupProfile.GroupOwnerId = Guid.Parse(userid);
     objGroupProfile.ProfileType  = network;
     objGroupProfile.EntryDate    = DateTime.Now;
     objGroupProfileRepository.AddGroupProfile(objGroupProfile);
     objTeam = new Domain.Socioboard.Domain.Team();
     objTeam = objTeamRepository.GetAllTeam(Guid.Parse(groupid), Guid.Parse(userid));
     objTeamMemberProfile                  = new Domain.Socioboard.Domain.TeamMemberProfile();
     objTeamMemberProfile.Id               = Guid.NewGuid();
     objTeamMemberProfile.TeamId           = objTeam.Id;
     objTeamMemberProfile.ProfileId        = profileid;
     objTeamMemberProfile.ProfileType      = network;
     objTeamMemberProfile.Status           = 1;
     objTeamMemberProfile.StatusUpdateDate = DateTime.Now;
     objTeamMemberProfileRepository.addNewTeamMember(objTeamMemberProfile);
     return("");
 }