TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Albert Newton
NA
6
1.4k
How to check for empty GUID
Aug 21 2020 7:02 AM
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?
Reply
Answers (
4
)
unable to attach to process. access is denied Visual Studio 2019
Variables not accessible by Child class from base class