public ServiceResponse <bool> UpdateExchange(ExchangeModel exchangeData) { var response = new ServiceResponse <bool>(null); try { _redisCacheManager.Publish("Exchange", exchangeData); response.IsSuccessful = true; } catch (Exception ex) { response.IsSuccessful = false; Console.WriteLine(ex.Message); } return(response); }