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)); }
public async Task <IActionResult> ListLogs() { if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageActivityLog)) { return(AccessDeniedView()); } var model = await _activityLogModelFactory.PrepareActivityLogSearchModel(new ActivityLogSearchModel()); return(View(model)); }