I have an Account table:
table Account
(
UserId int identity(1, 1),
UserName nvarchar(20) not null unique,
Password nvarchar(20) not null
)
By using LINQ. Whether I can check exist UserName
for an account then. And it's true then get UserId
for that account
(I'm use ASP MVC 4 with Entity Framework)