3.7 49 votes
Article Rating
Subscribe
Notify of
guest

5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
okdude
okdude
1 year ago

very nice article but where does _loginUser come from in controller? Cant seem to find reference to it.

Roy
Roy
1 year ago

Hi. I’m new to this. Please tell me how I can create a DBcontext class? Where do I create a repository folder and interface? And how do I configure the Startup Class?

Roy
Roy
1 year ago

Hi. I’m new here. Can I ask how and where do I create the DBcontext class? How and where to create the repository and interface? and where do I configure Startup Class?

Shehan Udaraka
Shehan Udaraka
1 year ago
Reply to  Roy

You can create dbcontect class in model folder. And you can create create a new folder in your current project by right click on your project and add new folder option.You can rename that new folder as Repository. Then you can add ILogin class and AuthenticateLogin class in that folder.

Eddie
Eddie
1 year ago

When Creating ILogin.cs class i always get an error on Getuser() and also on AuthenticateUser Any Suggestions on a solution.