Compare commits

..
1 Commits
Author SHA1 Message Date
kham 1a9316ed6f put in new function call 2026-09-26 09:23:54 +10:00
2 changed files with 2 additions and 2 deletions
@@ -122,7 +122,7 @@ public class FileUploadController : ControllerBase
return NotFound("not found image"); return NotFound("not found image");
} }
[HttpPost("[action]")] [HttpPost("[action]")]
public async Task<IActionResult> DownloadPersonPhotoPerson(DownloadFileCriteria criteria) public async Task<IActionResult> DownloadPersonPhoto(DownloadFileCriteria criteria)
{ {
var result = await _personPhoto.DownloadPersonPhotoPerson(criteria.Id,criteria.PhotoType ,criteria.FileName); var result = await _personPhoto.DownloadPersonPhotoPerson(criteria.Id,criteria.PhotoType ,criteria.FileName);
+1 -1
View File
@@ -34,7 +34,7 @@ export class ImageDisplayComponent implements OnInit, OnDestroy {
} }
loadImage(fileName: string | null, personId: number, photoType: number): void { loadImage(fileName: string | null, personId: number, photoType: number): void {
const download = this.personService.downloadPersonPhoto(fileName!, personId, photoType); const download = this.personService.downloadPersonPhoto64(fileName!, personId, photoType);
this.subscription.add(download.subscribe({ this.subscription.add(download.subscribe({
next: x => { next: x => {
if (x.statusCode == 1) if (x.statusCode == 1)