public static bool HasAccessInBranchNetwork(int branchNetworkId, int userId, Connection connection, MySqlTransaction transaction) { using (var dao = new BranchNetworkUserDAO(connection)) { return(dao.HasAccessInBranchNetwork(branchNetworkId, userId, transaction)); } }
public int Save(Connection connection, MySqlTransaction transaction) { using (var dao = new BranchNetworkUserDAO(connection)) { if (Id == 0) { return(dao.Insert(this, transaction)); } else { throw new NotImplementedException("Alteração de branch_nwtwork_user não iplementada!"); } } }