Пример #1
0
        /// <summary>
        /// Get infomation
        /// </summary>
        /// <param name="inputObject">DataModel</param>
        /// <returns>DataModel</returns>
        private FilterDataModel GetInfo(FilterDataModel inputObject)
        {
            // Local variable declaration
            FilterDataModel   getResult         = null;
            MCodeCom          mCodeCom          = null;
            AdminBrandListDao adminBrandListDao = null;

            // Variable initialize
            getResult         = new FilterDataModel();
            mCodeCom          = new MCodeCom();
            adminBrandListDao = new AdminBrandListDao();

            // Get data
            var listBrands = adminBrandListDao.GetListBrands(inputObject);

            // Set value
            getResult.ListBrands = listBrands;

            // Return value
            return(getResult);
        }
Пример #2
0
        /// <summary>
        /// Get infomation
        /// </summary>
        /// <param name="inputObject">DataModel</param>
        /// <returns>DataModel</returns>
        private InitDataModel GetInfo(InitDataModel inputObject)
        {
            // Local variable declaration
            InitDataModel     getResult         = null;
            MCodeCom          mCodeCom          = null;
            AdminBrandListDao adminBrandListDao = null;

            // Variable initialize
            getResult         = new InitDataModel();
            mCodeCom          = new MCodeCom();
            adminBrandListDao = new AdminBrandListDao();

            // Get data
            var listDeleteFlag = mCodeCom.GetListCode(Logics.GROUP_DELETE_FLAG, null, true, false);
            var listBrands     = adminBrandListDao.GetListBrands();

            // Set value
            getResult.ListDeleteFlag = listDeleteFlag;
            getResult.ListBrands     = listBrands;

            // Return value
            return(getResult);
        }