public IHttpActionResult Save(Settings setting)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            service.SettingsUpdate(setting);
            return Ok();
        }
        public void SettingsUpdate(Settings settings)
        {
            data.Nom = settings.Nom;
            data.NbBilletsCirculation = settings.NbBilletsCirculation;
            Save();

            AddToRecentFiles();
        }
        public Settings SettingsGet()
        {
            Settings settings = new Settings()
            {
                NbBilletsCirculation = data.NbBilletsCirculation,
                Nom = data.Nom
            };

            return settings;
        }