public virtual IActionResult List() { //prepare model LogSearchModel model = _logModelFactory.PrepareLogSearchModel(new LogSearchModel()); return(View(model)); }
public async Task <IActionResult> List() { if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageSystemLog)) { return(AccessDeniedView()); } var model = await _logModelFactory.PrepareLogSearchModel(new LogSearchModel()); return(View(model)); }
public virtual IActionResult List() { if (!_permissionService.Authorize(StandardPermissionProvider.ManageSystemLog)) { return(AccessDeniedView()); } //prepare model var model = _logModelFactory.PrepareLogSearchModel(new LogSearchModel()); return(View(model)); }