public ActionResult AuditLogEntries(ViewAuditLogModel model, int start = 0) { LoginManager.VerifyPermission(PermissionToken.ViewAuditLog); var excludeUsers = (!string.IsNullOrEmpty(model.ExcludeUsers) ? model.ExcludeUsers.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(u => u.Trim()).ToArray() : new string[0]); var cutoffDays = (string.IsNullOrEmpty(model.UserName) ? 365 : 0); var entries = Service.GetAuditLog(model.Filter, start, 200, cutoffDays, model.UserName, excludeUsers, model.OnlyNewUsers, model.GroupId); return PartialView(entries); }
public ActionResult ViewAuditLog(ViewAuditLogModel model) { LoginManager.VerifyPermission(PermissionToken.ViewAuditLog); return View(model ?? new ViewAuditLogModel()); }