Quote:
does not exist in the current context
This error means that the identifier that you are using does not exist in the current source file. It doesn't refer to any variable, function, class, or any other thing that compiler doesn't take as a keyword.
You need to check if a function is declared as:
public static bool isAdminUser() {
}
If not, then create it. Also, from the second part of your code. I think, you are missing the main point of Entity framework. It doesn't use "context" as the name of the object, instead it uses something like, "DbContext", "AppDataContext" and then uses the methods and properties.
Your source code is not shown, but the problem is indeed this. Read the following links for more.
c# - Name does not exist in the current context - Stack Overflow[
^]
Compiler Error CS0103[
^]