Exemplo n.º 1
0
 public IActionResult GetExchangeRates([FromQuery] string @base, [FromQuery] string symbols)
 {
     try
     {
         var conversionRate = _currencyManager.GetConversionRate(@base, symbols);
         if (conversionRate != null)
         {
             return(Ok(conversionRate));
         }
         else
         {
             return(NoContent());
         }
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }