public ApiResult LoadTotal([FromBody] WhisperConditionModel whisperConditionModel) { WhisperCondiiton whisperCondiiton = new WhisperCondiiton(); if (whisperConditionModel.LoginUser) { whisperCondiiton.Account = Auth.GetLoginUser(_httpContext).Account; } else { whisperCondiiton.Account = whisperCondiiton.Account; } int total = _whisperRepository.SelectCount(whisperCondiiton); return(ApiResult.Success(total)); }
public int SelectCount(WhisperCondition condition = null) { return(_whisperRepoistory.SelectCount()); }
public int SelectCount(WhisperConditionModel conditionModel = null) { WhisperCondiiton condiiton = ConvertCondition(conditionModel); return(_whisperRepository.SelectCount(condiiton)); }