Exemple #1
0
 public async Task <ActionResult <decimal> > ConvertToFunctional(DateTime date, string currencyId, decimal amount, CancellationToken cancellation)
 {
     return(await ControllerUtilities.InvokeActionImpl(async() =>
     {
         var result = await _service.ConvertToFunctional(date, currencyId, amount, cancellation);
         return Ok(result);
     },
                                                       _logger));
 }
Exemple #2
0
        public async Task <ActionResult <decimal> > ConvertToFunctional(DateTime date, string currencyId, decimal amount, CancellationToken cancellation)
        {
            var result = await _service.ConvertToFunctional(date, currencyId, amount, cancellation);

            return(Ok(result));
        }