public ActionResult SaveSetting(DbAppSettingModel model)
        {
            if (model == null)
            {
                throw new ValidationException("model cannot be null");
            }

            DbAppSettingDto toSave = model.ToDto();

            bool isValid = _dbAppSettingMaintenanceService.ValidateValueForType(model.Value, model.Type);

            if (!isValid)
            {
                return new JsonResult()
                       {
                           Data = false
                       }
            }
            ;

            _dbAppSettingMaintenanceService.SaveDbAppSetting(HttpContext.Session.SessionID, toSave);

            return(new JsonResult()
            {
                Data = true
            });
        }
        public ActionResult RemoveSetting(DbAppSettingModel model)
        {
            if (model == null)
            {
                throw new ValidationException("model cannot be null");
            }

            DbAppSettingDto toRemove = model.ToDto();

            //TODO: Validate

            _dbAppSettingMaintenanceService.DeleteDbAppSetting(HttpContext.Session.SessionID, toRemove);

            return(new JsonResult()
            {
                Data = true
            });
        }