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