Esempio n. 1
0
        public virtual IActionResult ListLogs()
        {
            //prepare model
            ActivityLogSearchModel model = _activityLogModelFactory.PrepareActivityLogSearchModel(new ActivityLogSearchModel());

            return(View(model));
        }
        public virtual IActionResult ListLogs()
        {
            //if (!_permissionService.Authorize(StandardPermissionProvider.ManageActivityLog))
            //    return AccessDeniedView();

            //prepare model
            var model = _activityLogModelFactory.PrepareActivityLogSearchModel(new ActivityLogSearchModel());

            return(View(model));
        }
Esempio n. 3
0
        public async Task <IActionResult> ListLogs()
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageActivityLog))
            {
                return(AccessDeniedView());
            }

            var model = await _activityLogModelFactory.PrepareActivityLogSearchModel(new ActivityLogSearchModel());

            return(View(model));
        }