James Reyes
James Reyes

Reputation: 11

Deploy two ASP.NET MVC apps connecting to one context

I am trying to create a thesis repository where the client side and admin side will have different url like Client - thesisrepo (at) domain (dot) com, and Admin - managerepo (at) domain (dot) com but they will connect to the same context, which is ThesisRepoContext.

  1. Is this design recommended? Cause I don't want the clients to access the admin side (of course) by url, so I'm thinking of separating its address.
  2. Is this possible? Is it possible to deploy two websites connecting to one database context? If yes, how?

Thanks in advance

Upvotes: 0

Views: 43

Answers (1)

vzayko
vzayko

Reputation: 335

I would move database context into a separate assembly for reusing it between sites. Also, I would use role based authorization to split access. BTW in this case there are no security reasons to use two separate sites.

Upvotes: 1

Related Questions