/// <summary> /// Prepare email account search model /// </summary> /// <param name="searchModel">Email account search model</param> /// <returns>Email account search model</returns> public virtual EmailAccountSearchModel PrepareEmailAccountSearchModel(EmailAccountSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(searchModel); }
/// <summary> /// Prepare email account search model /// </summary> /// <param name="searchModel">Email account search model</param> /// <returns>Email account search model</returns> public virtual Task <EmailAccountSearchModel> PrepareEmailAccountSearchModelAsync(EmailAccountSearchModel searchModel) { if (searchModel == null) { throw new ArgumentNullException(nameof(searchModel)); } //prepare page parameters searchModel.SetGridPageSize(); return(Task.FromResult(searchModel)); }