What is the main difference between using the options Guid.Parse()
or new Guid()
to convert a string into a Guid
?
And which of the two approaches would be best to use?
var usuarioId = new Guid(User.Identity.GetUserId())
Or
var usuarioId = Guid.Parse(User.Identity.GetUserId())