public IActionResult Create(ConfigurationModel model)
        {
            Configuration configuration = model.ToEntity();

            _configurationService.InsertConfiguration(configuration);

            if (model.IsActive)
            {
                var message = new ServiceMessageModel()
                {
                    Key   = model.ApplicationName,
                    Value = model.Value
                };

                Publisher publisher = new Publisher(message.Key, message.Value);
            }

            return(RedirectToAction("Index", "Configuration"));
        }
        public IActionResult Update(string InternalId, ConfigurationModel model)
        {
            model.InternalId = new ObjectId(InternalId);
            Configuration configuration = model.ToEntity();

            _configurationService.UpdateConfiguration(configuration);

            if (model.IsActive)
            {
                var message = new ServiceMessageModel()
                {
                    Key   = model.ApplicationName,
                    Value = model.Value
                };

                Publisher publisher = new Publisher(message.Key, message.Value);
            }

            return(RedirectToAction("Index", "Configuration"));
        }