public IHttpActionResult UpdateRates() { var externalService = new ApiService(); var manager = new FinanceManager(_bankService, externalService); try { manager.UpdateCurrencyRates(); } catch (Exception ex) { return(BadRequest(ex.Message)); } return(Ok("Rates Updated")); }