示例#1
0
 public bool UpdateSetting(Settings setting)
 {
     settingsRepository.Update(setting);
     unitOfWork.Commit();
     if (settingsRepository != null && unitOfWork != null)
     {
         return true;
     }
     return false;
 }
示例#2
0
 public virtual ActionResult Create(Settings siteSettings)
 {
     settings.CreateSetting(siteSettings);
     return RedirectToAction("Index");
 }