private PMS_USERS currUser;
private bool validateUserName()
{
dbContext = new PmsEntities();
var validateUser = dbContext.PMS_USERS.Where(p=> p.LOGICALREF != currUser.LOGICALREF).Where(p=> p.USERNAME == currUser.USERNAME);
return !validateUser.Any();
}
Hello, I got an error while validating on my new user register form.
My PMS_USERS
table has no record(null
). I also tried checking for null
control(s) for currUser
.
What am I missing?
Error is :
Non static method requires a target