public static BranchNetwork FindById(int branchNetworkId, Connection connection, MySqlTransaction transaction) { using (var dao = new BranchNetworkDAO(connection)) { return(dao.FindById(branchNetworkId, transaction)); } }
public static List <BranchNetwork> FindByUserId(int userId, Connection connection, MySqlTransaction transaction) { using (var dao = new BranchNetworkDAO(connection)) { return(dao.FindByUserId(userId, transaction)); } }
public int Save(Connection connection, MySqlTransaction transaction) { using (var dao = new BranchNetworkDAO(connection)) { if (Id == 0) { return(dao.Insert(this, transaction)); } else { return(0); } } }