Esempio n. 1
0
 public static void UpdateUserPreference(UserPreference userPref)
 {
     using (var db = new Data.DBMEdition01Context())
     {
         ExceptionLogServices exceptionLog = new ExceptionLogServices();
         try
         {
             db.ApiUpdateUserPreference(userPref.UserID, userPref.SiteID, userPref.ProgramID, userPref.preferenceType, userPref.PreferenceValue);
         }
         catch (Exception ex)
         {
             string sqlParam   = "ApiUpdateUserPreference(" + userPref.UserID + "," + userPref.SiteID + "," + userPref.ProgramID + "," + userPref.preferenceType + "," + userPref.PreferenceValue + ")";
             string methodName = "JCRAPI/Business/UserServices/UpdateUserPreference";
             exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, userPref.UserID, userPref.SiteID, sqlParam, string.Empty);
         }
     }
 }