コード例 #1
0
        /// <summary>
        /// Prepare activity log search model
        /// </summary>
        /// <param name="searchModel">Activity log search model</param>
        /// <returns>
        /// A task that represents the asynchronous operation
        /// The task result contains the activity log search model
        /// </returns>
        public virtual async Task <ActivityLogSearchModel> PrepareActivityLogSearchModelAsync(ActivityLogSearchModel searchModel)
        {
            if (searchModel == null)
            {
                throw new ArgumentNullException(nameof(searchModel));
            }

            //prepare available activity log types
            await _baseAdminModelFactory.PrepareActivityLogTypesAsync(searchModel.ActivityLogType);

            //prepare grid
            searchModel.SetGridPageSize();

            return(searchModel);
        }