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