How can I check if a value exists in a list using C#
- by Samantha J
I have the following code that gives me a list of id and names from the new ASP.NET MVC5 Identity:
var identityStore = new IdentityStore();
var users =
(
from user in identityStore.DbContext.Set<User>()
select new
{
id = user.Id,
name =…