@using PowderCoating.Core.Entities @model List @section Styles { } @{ ViewData["Title"] = "Audit Log"; int page = ViewBag.Page; int totalPages = ViewBag.TotalPages; int totalCount = ViewBag.TotalCount; int pageSize = ViewBag.PageSize; string PageLink(int p) => Url.Action("Index", new { search = ViewBag.Search, entityType = ViewBag.EntityType, action = ViewBag.Action, companyId = ViewBag.CompanyId, from = ViewBag.From, to = ViewBag.To, page = p, pageSize })!; string BadgeClass(string action) => action switch { "Created" => "bg-success", "Updated" => "bg-primary", "Deleted" => "bg-danger", "Restored" => "bg-warning text-dark", "ManualChange" => "bg-info", "Login" => "bg-success", "Login2FABypassed" => "bg-success", "FailedLogin" => "bg-warning text-dark", "LoginDenied" => "bg-warning text-dark", "AccountLockedOut" => "bg-danger", _ => "bg-secondary" }; }

Audit Log

@totalCount.ToString("N0") entries
@* Filters *@
@* Table *@
@if (!Model.Any()) { } @foreach (var log in Model) { }
Timestamp Action Entity Description User Company
No audit entries found.
@log.Timestamp.Tz(ViewBag.CompanyTimeZone as string).ToString("MM/dd/yy HH:mm:ss") @log.Action @log.EntityType @log.EntityId @log.EntityDescription @log.UserName @log.CompanyName @if (log.OldValues != null || log.NewValues != null) { }
@* Pagination *@ @if (totalPages > 1) { }