Ejemplo n.º 1
0
        public object DeleteAdmMenusubInfoById(object param)
        {
            Database db     = DatabaseFactory.CreateDatabase();
            object   retObj = null;

            using (DbConnection connection = db.CreateConnection())
            {
                connection.Open();
                DbTransaction transaction = connection.BeginTransaction();
                try
                {
                    AdmMenusubDAL admMenusubDAL = new AdmMenusubDAL();
                    retObj = (object)admMenusubDAL.DeleteAdmMenusubInfoById(param, db, transaction);
                    transaction.Commit();
                }
                catch
                {
                    transaction.Rollback();
                    throw;
                }
                finally
                {
                    connection.Close();
                }
            }
            return(retObj);
        }
Ejemplo n.º 2
0
        public object GetAllAdmMenusubRecord(object param)
        {
            object        retObj        = null;
            AdmMenusubDAL admMenusubDAL = new AdmMenusubDAL();

            retObj = (object)admMenusubDAL.GetAllAdmMenusubRecord(param);
            return(retObj);
        }