Exemplo n.º 1
0
        /// <summary>
        /// Prepare log search model
        /// </summary>
        /// <param name="searchModel">Log search model</param>
        /// <returns>Log search model</returns>
        public virtual async Task <LogSearchModel> PrepareLogSearchModelAsync(LogSearchModel searchModel)
        {
            if (searchModel == null)
            {
                throw new ArgumentNullException(nameof(searchModel));
            }

            //prepare available log levels
            await _baseAdminModelFactory.PrepareLogLevelsAsync(searchModel.AvailableLogLevels);

            //prepare page parameters
            searchModel.SetGridPageSize();

            return(searchModel);
        }