Exemplo n.º 1
0
        private static void WriteResult(ContextService db, int idProcess, int idStep, String message)
        {
            ProcessLog log = new ProcessLog();

            log.IdProcess     = idProcess;
            log.IdProcessStep = idStep;
            log.AsignarId();
            log.Result = message;
            log.UsrIng = "admin";
            log.FecIng = DateTime.Now;
            db.ProcessLogs.Insert(log);
            db.Save();
        }
Exemplo n.º 2
0
        public static void WriteError(int idProcess, int idStep, string ex)
        {
            ProcessLog log = new ProcessLog();

            log.IdProcess     = idProcess;
            log.IdProcessStep = idStep;
            log.AsignarId();
            log.ErrorLog = ex;
            log.UsrIng   = "admin";
            log.FecIng   = DateTime.Now;
            db.ProcessLogs.Insert(log);
            db.Save();
        }