Beispiel #1
0
 public bool RemoveMember(int profileId, int groupId)
 {
     try
     {
         SqlConnection con = new DbConnection().GetConnection();
         try
         {
             if (dbGroup.RemoveMember(profileId, groupId, null, con) == 0)
             {
                 return(false);
             }
             else
             {
                 return(true);
             }
         }
         finally
         {
             con.Close();
         }
     }
     catch
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool RemoveMember(int profileId, int groupId)
 {
     try
     {
         if (dbGroup.RemoveMember(profileId, groupId) == 0)
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }