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