protected void _save_error_log(Modules.Log.Action action, Guid?subjectId, Guid?secondSubjectId = null, string info = null) { if (!subjectId.HasValue) { return; } _save_error_log(action, new List <Guid>() { subjectId.Value }, secondSubjectId, info); }
protected void _save_error_log(Modules.Log.Action action, List <Guid> subjectIds, Guid?secondSubjectId = null, string info = null) { try { LogController.save_log(paramsContainer.Tenant.Id, new Log() { UserID = paramsContainer.CurrentUserID, HostAddress = PublicMethods.get_client_ip(HttpContext.Current), HostName = PublicMethods.get_client_host_name(HttpContext.Current), Action = action, SubjectIDs = subjectIds, SecondSubjectID = secondSubjectId, Info = info, ModuleIdentifier = ModuleIdentifier.PRVC }); } catch { } }