コード例 #1
0
        /// <summary>
        /// Saves the phone without student info
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        public async Task SetPhone(PhoneInfoDto phone)
        {
            var phoneCoincidence = _phoneInfoRepository.FirstOrDefault(a => a.Token == phone.Token);

            if (phoneCoincidence != null)
            {
                return;
            }
            var mapped = phone.MapTo <PhoneInfo>();
            await _phoneInfoRepository.InsertAndGetIdAsync(mapped);
        }
コード例 #2
0
 public async Task <SendPhoneConfirmationResultEnum> SendPhoneConfirmation(PhoneInfoDto phoneInfo)
 {
     Validate();
     return(await _accountService.SendPhoneConfirmation(GetUser(), phoneInfo.Phone));
 }