public async Task <IHttpActionResult> Delete(int id) { var exchangeRateInDb = await _exchangeRateRepository.GetAsync(id); if (exchangeRateInDb == null) { return(NotFound()); } _exchangeRateRepository.Remove(exchangeRateInDb); await UnitOfWork.CompleteAsync(); return(Ok()); }