Esempio n. 1
0
 public bool UpdateTracerCategoryForTracer(int tracerCategoryId, int tracerCustomId, int updatedById)
 {
     try
     {
         using (var db = new Data.DBMEdition01Context())
         {
             db.ApiUpdateTracerCategoryForTracer(tracerCategoryId, tracerCustomId, updatedById);
         }
         return(true);
     }
     catch (Exception ex)
     {
         StringBuilder sb = new StringBuilder();
         sb.AppendFormat("EXEC dbo.apiUpdateTracerCategoryForTracer @tracerCategoryId={0}, @tracerCustomId={1}, @updatedById={2}", tracerCategoryId, tracerCustomId, updatedById);
         string sqlParam   = sb.ToString();
         string methodName = "JCRAPI/Business/TracerService/UpdateTracerCategoryForTracer";
         exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, tracerCustomId, sqlParam, string.Empty);
         return(false);
     }
 }