public async Task <ActionResult> Delete(int id)
        {
            try
            {
                var config = EventConfigurationHelper.GetConfiguration(id);
                EventConfigurationHelper.DeleteConfiguration(config);
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message);
            }

            var model = GetModel();

            model.Response = "Event Configuration deleted successfully";

            return(View("Index", model));
        }
        public async Task <ActionResult> Edit(int id)
        {
            var model = GetModel();

            try
            {
                int userId = UserHelper.GetUserByIdentityName(User.Identity.Name).Id;

                var config = EventConfigurationHelper.GetConfiguration(id);
                model.CurrentConfig = GetCurrentConfig(config, userId);
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message);
            }

            return(View("Index", model));
        }