Esempio n. 1
0
        public ActionResult Edit(long ID, string title, string key, string valuesystem, string des)
        {
            var           tag    = _systemSettingBusiness.GetById(ID);
            SystemSetting entity = new SystemSetting();

            entity.Key         = key;
            entity.Value       = valuesystem;
            entity.Title       = title;
            entity.DesCription = des;

            entity.ModifyDate = DateTime.Now;
            _systemSettingBusiness.Edit(entity);
            return(View());
        }
Esempio n. 2
0
 public JsonResult UpdateWebSetting(Common.SystemSetting systemSetting)
 {
     try
     {
         SystemSettingBusiness systemSettingBussiness = new SystemSettingBusiness();
         var system = systemSettingBussiness.GetById(systemSetting.Id);
         system.Id          = systemSetting.Id;
         system.Title       = systemSetting.Title;
         system.Value       = systemSetting.Value;
         system.Key         = systemSetting.Key;
         system.ModifyDate  = systemSetting.ModifyDate;
         system.DesCription = systemSetting.DesCription;
         systemSettingBussiness.Edit(system);
         return(Json(1));//Cập nhật thành công
     }
     catch (Exception)
     {
         throw;
     }
 }