public async Task <bool> CardPayoutNotificationCallbackAsync(ApiCardPayoutResponse cardPayoutNotification) { try { //simulate asynchronous work, here you will write your own business logic await Task.Delay(50); //signal operation success by returning true return(true); } catch (Exception ex) { // log the exception _logger.LogError(ex.Message); //signal operation failure by returning false return(false); } }
public Task <bool> CardPayoutNotificationCallbackAsync(ApiCardPayoutResponse cardPayoutNotification) { return(CardPayoutNotificationCallback(cardPayoutNotification)); }