I have in database a empty GUID.
But if I execute this code:
- List listOfOneResource = await _resourceService.GetResourcesById(new List { new Guid(welcome.WelcomePopupImage) });
- Guid fileId = listOfOneResource.First().FileId ?? Guid.Empty; // this should never be empty in case of an image type resource
- string fileIdString = fileId.ToString();
- welcome.WelcomePopupImage = _appSettings.MedicalBaseUrl + "/resources/image/" + fileIdString + ".jpg";
I get an error on this line:
- List listOfOneResource = await _resourceService.GetResourcesById(new List { new Guid(welcome.WelcomePopupImage) });
"message": "Unrecognized Guid format.",
So what I have to change?



Laxmidhar SahooRank #383 · 6.6K reputationPosted Aug 21, 2020, 9:23 PM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Aug 22, 2020, 1:42 AM EDT