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); } }
public bool UpdateGroup(string name, int groupId) { try { if (!name.Equals("") && dbGroup.UpdateGroup(groupId, name) == 1) { return(true); } else { return(false); } } catch { return(false); } }