public async Task <LogSearchModel> PrepareLogSearchModel(LogSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } await _baseModelFactory.PrepareLogLevels(searchModel.AvailableLogLevels); searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare log search model /// </summary> /// <param name="searchModel">Log search model</param> /// <returns>Log search model</returns> public virtual LogSearchModel PrepareLogSearchModel(LogSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare available log levels _baseAdminModelFactory.PrepareLogLevels(searchModel.AvailableLogLevels); //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }