|
|
|
@ -48,11 +48,8 @@ namespace EventHub.Web.Pages.Organizations |
|
|
|
if (Organization.ProfilePictureFile != null && Organization.ProfilePictureFile.Length > 0) |
|
|
|
{ |
|
|
|
await Organization.ProfilePictureFile.CopyToAsync(memoryStream); |
|
|
|
updateOrganizationDto.ProfilePictureStreamContent = new RemoteStreamContent(memoryStream) |
|
|
|
{ |
|
|
|
ContentType = Organization.ProfilePictureFile.ContentType, |
|
|
|
FileName = Organization.ProfilePictureFile.FileName, |
|
|
|
}; |
|
|
|
|
|
|
|
updateOrganizationDto.ProfilePictureStreamContent = new RemoteStreamContent(memoryStream, fileName: Organization.ProfilePictureFile.FileName, contentType: Organization.ProfilePictureFile.ContentType); |
|
|
|
} |
|
|
|
|
|
|
|
await _organizationAppService.UpdateAsync(Organization.Id, updateOrganizationDto); |
|
|
|
|