示例#1
0
        public ActionResult StaffTrail()
        {
            var model = new WITU.Models.AuditViewList()
            {
                AuditRecords = _auditRepository.GetStaffTrail().Select(x =>
                                                                       new AuditTrail()
                {
                    UserType     = x.UserType,
                    UserName     = x.UserName,
                    IpAddress    = x.IpAddress,
                    UrlAccessed  = x.UrlAccessed,
                    Message      = x.Message,
                    Data         = x.Data,
                    TimeAccessed = x.TimeAccessed
                }).ToList()
            };

            @ViewBag.TrailGroup = "Staff";
            return(View("Index", model));
        }
示例#2
0
        public ActionResult Index()
        {
            var model = new WITU.Models.AuditViewList()
            {
                AuditRecords = _coreRepo.GetAll <Audit>().Select(x =>
                                                                 new AuditTrail()
                {
                    UserType     = x.UserType,
                    UserName     = x.UserName,
                    IpAddress    = x.IpAddress,
                    UrlAccessed  = x.UrlAccessed,
                    Message      = x.Message,
                    Data         = x.Data,
                    TimeAccessed = x.TimeAccessed
                }).ToList()
            };

            @ViewBag.TrailGroup = "All";
            return(View(model));
        }