public object DeleteHcProductcartInfoById(object param) { Database db = DatabaseFactory.CreateDatabase(); object retObj = null; using (DbConnection connection = db.CreateConnection()) { connection.Open(); DbTransaction transaction = connection.BeginTransaction(); try { HcProductcartDAL hcProductcartDAL = new HcProductcartDAL(); retObj = (object)hcProductcartDAL.DeleteHcProductcartInfoById(param, db, transaction); transaction.Commit(); } catch { transaction.Rollback(); throw; } finally { connection.Close(); } } return(retObj); }
public object GetAllHcProductcartRecord(object param) { object retObj = null; HcProductcartDAL hcProductcartDAL = new HcProductcartDAL(); retObj = (object)hcProductcartDAL.GetAllHcProductcartRecord(param); return(retObj); }