Search code examples
asp.net-mvcdomain-driven-designmembershipmembership-provider

What is the best place to put ASP.NET MVC FormMembershipProvider


I have a project using asp.net mvc and form membership provider .

I have a Domain layer ( with Entities , Services , and repositories ) . I also have a UI layer ( with controllers , filters , IoC , ViewModels, views ).

what is the best place to put my FormMembershipProvider ?


Solution

  • Membership is a concern of your web app not your domain so it should go in the web app (UI layer).