示例#1
0
        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));
        }
示例#2
0
 public int SelectCount(WhisperCondition condition = null)
 {
     return(_whisperRepoistory.SelectCount());
 }
示例#3
0
        public int SelectCount(WhisperConditionModel conditionModel = null)
        {
            WhisperCondiiton condiiton = ConvertCondition(conditionModel);

            return(_whisperRepository.SelectCount(condiiton));
        }