コード例 #1
0
        public Task <SalesforceResponse> PostMessageAsync(string message)
        {
            var statusCode = FailureRules.ThrowFail() ? HttpStatusCode.InternalServerError : HttpStatusCode.OK;

            return(Task.FromResult(result: new SalesforceResponse(statusCode)));
        }
コード例 #2
0
        public Task <EmailResponse> SendEmailAsync(EmailModel emailModel)
        {
            var statusCode = FailureRules.ThrowFail() ? FailureRules.FAIL_CODE : FailureRules.SUCESS_CODE;

            return(Task.FromResult(result: new EmailResponse(statusCode)));
        }