thisId
will relturn list of network emails:
var thisId = myEntities.refAuthSigners
.Where(x => x.refAuthSignerID == signerID)
.Select(x => x.NetworkEmail)
.ToList();
Calling ToString()
will return you list's type name. Something like:
"System.Collections.Generic.List`1[Namespace.NetworkEmail]"
Which definitely not looks like email address. Possibly you want to use FirstOrDefault()
instead of ToList()
. That will return you network address of first signer with provided id. You should check whether returned value is not null, and then call ToString()
(if you have ToString()
overridden on network email type).