public async Task <FileResult> GetCoverPictureById(long id) { using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant)) { var binaryObject = await _binaryObjectManager.GetAsync(id, BinaryObjectTypes.BranchCoverPicture); if (binaryObject != null) { return(File(binaryObject.Content, binaryObject.ContentType)); } return(File(Path.Combine(_hostingEnvironment.WebRootPath, "/images/default-thumb.png"), "image/png")); } }