public async Task <IActionResult> GetForCurrentUser() { var currentUserIdentity = User.Identity; var loadImageResult = await _imageStorageService.LoadImageForCurrentUserAsync(currentUserIdentity); if (!loadImageResult.IsSuccessful) { return(GetImageLoadErrorResult(loadImageResult.Error)); } var image = PhysicalFile(loadImageResult.FilePath, loadImageResult.FileMediaType); return(image); }