-2
votes
0answers
17 views

Where to keep data about an authenticated user? [closed]

I am still pretty new to ASP.NET Web API. I am currently working on the authentication part of a new application based on Web API, which is developed using some libraries/kinda framework of the ...
1
vote
0answers
65 views

Select list items in ViewModel fetched using a Repository

Doing database access in ViewModel is generally considered a bad practice. However, when you have a <select> in your view, you need to populate it using the ViewBag or the ViewModel (I prefer ...
3
votes
0answers
232 views

Is this the right way to inject AutoMapper profiles

I'd like to know if I'm doing profile configuration in the wrong place or in the wrong way. I'm following the Onion Architecture. So that restricts the direction of my dependencies towards the ...
1
vote
1answer
918 views

Entity Framework & Unit Of Work Design issue with Repository & DI, Please Help

I am facing a problem to save data using UnitOfWork. I mean I am unable to save data using UnitOFWork.Commit() from Controller class. My Implementation check bellow. IUnitOfWork public interface ...
4
votes
1answer
919 views

Can someone review my AutoFac, NHibernate & ASP.NET Web API integration?

I've recently been learning (and struggling with) integrating AutoFac, NHibernate & ASP.NET Web API. I have found several tutorials with code that did not work as anticipated but managed to ...