Ejemplo n.º 1
0
        /// <summary>
        /// find user info
        /// </summary>
        /// <param name="praiseId"></param>
        /// <param name="accountId"></param>
        /// <returns></returns>
        public SmsDTO FindSms(string mobile, string code, int validateState)
        {
            //recover existing favoriteId and map
            var sms = _smsRepository.Get(mobile, code, validateState);

            if (sms != null) //adapt
            {
                return(sms.ProjectedAs <SmsDTO>());
            }
            else
            {
                return(null);
            }
        }