protected virtual void InitSettings()
 {
     if (settingsManager != null) {
         Settings = settingsManager.GetAppSetting();
     }
     if (Settings == null) {
         Settings = new AppSettings();
     }
 }
 public virtual IHttpActionResult GetAll()
 {
     if (settingsManager != null) {
         Settings = settingsManager.GetAppSetting();
     }
     if (Settings == null) {
         Settings = new AppSettings();
     }
     return Ok(Settings);
 }
 public virtual IHttpActionResult Put(AppSettings appSettings)
 {
     settingsManager.SetAppSetting(appSettings);
     return Ok();
 }