Example #1
0
 public ActionResult Save(Bam.Net.UserAccounts.Data.Setting[] values)
 {
     try
     {
         SettingCollection saver = new SettingCollection();
         saver.AddRange(values);
         saver.Save();
         return(Json(new { Success = true, Message = "", Dao = "" }));
     }
     catch (Exception ex)
     {
         return(GetErrorResult(ex));
     }
 }
Example #2
0
 public void InitializeSettings(List<Setting> result)
 {
     _settings = new SettingCollection();
     _settings.AddRange(result);
 }