예제 #1
0
 public bool UpdateGroup(string name, int groupId)
 {
     try
     {
         SqlConnection con = new DbConnection().GetConnection();
         try
         {
             if (!name.Equals("") && dbGroup.UpdateGroup(groupId, name, null, con) == 1)
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
         finally
         {
             con.Close();
         }
     }
     catch
     {
         return(false);
     }
 }
예제 #2
0
 public bool UpdateGroup(string name, int groupId)
 {
     try
     {
         if (!name.Equals("") && dbGroup.UpdateGroup(groupId, name) == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }