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(); }
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(); }