Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public object GetAllAdmRolemasterRecord(object param)
        {
            object           retObj           = null;
            AdmRolemasterDAL admRolemasterDAL = new AdmRolemasterDAL();

            retObj = (object)admRolemasterDAL.GetAllAdmRolemasterRecord(param);
            return(retObj);
        }