public Task <SalesforceResponse> PostMessageAsync(string message) { var statusCode = FailureRules.ThrowFail() ? HttpStatusCode.InternalServerError : HttpStatusCode.OK; return(Task.FromResult(result: new SalesforceResponse(statusCode))); }
public Task <EmailResponse> SendEmailAsync(EmailModel emailModel) { var statusCode = FailureRules.ThrowFail() ? FailureRules.FAIL_CODE : FailureRules.SUCESS_CODE; return(Task.FromResult(result: new EmailResponse(statusCode))); }