public async Task <ActionResult> File(int contentId) { if (await IsGrantedAsync(PermissionNames.ContentChange)) { CurrentUnitOfWork.DisableFilter(AbpDataFilters.SoftDelete, FilterNames.Approved); } var file = await _bookservice.GetFileAsync(contentId); await _bookservice.AddViewerAsync(contentId); return(file); }