Ejemplo n.º 1
0
        public async Task <ActionResult> CreateVerificationCode(CreateVerificationCodeModel createVerification)
        {
            try
            {
                await _ApiClient.PostAsync("Announcement/CreateVerificationCode", null, createVerification);

                return(Ok());
            }
            catch (AuthorizationException ex)
            {
                throw ex;
            }
            catch (BusinessRuleException ex)
            {
                return(JsonErrorMessage(ex.Message));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.ToString(), ex);
                return(JsonErrorMessage(Resources.TenderResources.ErrorMessages.UnexpectedError));
            }
        }
 public async Task CreateVerificationCode(CreateVerificationCodeModel createVerification)
 {
     Check.ArgumentNotNull(nameof(createVerification), createVerification);
     await _announcementDomainService.CreateVerificationCode(createVerification.Id);
 }
 public async Task CreateVerificationCode([FromBody] CreateVerificationCodeModel createVerification)
 {
     createVerification.Id = Util.Decrypt(createVerification.IdString);
     await _announcementSupplierTemplateAppService.CreateVerificationCode(createVerification);
 }