Beispiel #1
0
 public string UpdateValueInSettings(string Value)
 {
     try
     {
         AppUA appUA = Session["AppUA"] as AppUA;
         SysSettingsViewModel sysSettings = new SysSettingsViewModel();
         sysSettings.Name      = "OE-LIMIT";
         sysSettings.Value     = Value;
         sysSettings.CommonObj = new CommonViewModel();
         SPAccounts.DataAccessObject.DTO.Common common = new SPAccounts.DataAccessObject.DTO.Common();
         sysSettings.CommonObj.UpdatedBy   = appUA.UserName;
         sysSettings.CommonObj.UpdatedDate = common.GetCurrentDateTime();
         string actionMessage = _otherExpenseBusiness.UpdateValueInSettings(Mapper.Map <SysSettingsViewModel, SysSettings>(sysSettings));
         return(JsonConvert.SerializeObject(new { Result = "OK", Message = actionMessage }));
     }
     catch (Exception Ex)
     {
         AppConstMessage cm = c.GetMessage(Ex.Message);
         return(JsonConvert.SerializeObject(new { Result = "ERROR", Message = cm.Message }));
     }
 }