/// <summary> /// Prepare schedule task search model /// </summary> /// <param name="searchModel">Schedule task search model</param> /// <returns>Schedule task search model</returns> public virtual Task <ScheduleTaskSearchModel> PrepareScheduleTaskSearchModelAsync(ScheduleTaskSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }
/// <summary> /// Prepare schedule task search model /// </summary> /// <param name="searchModel">Schedule task search model</param> /// <returns>Schedule task search model</returns> public virtual ScheduleTaskSearchModel PrepareScheduleTaskSearchModel(ScheduleTaskSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }