dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: MVC application design advice

  1. #1
    Join Date
    Feb 2010
    Posts
    17

    MVC application design advice

    I need some advice in desiging an ASP.NET MVC application. This is my first MVC so i am debating on the best way to design this.

    We will use one internal url for all users to access the application. We will be using windows authentication for the application. So when they access the url they will already be logged in via windows.

    Users will be divided up into groups such as admin, sales, accounting, production. When they access the url they will be "redirected" the the portion of the application that will pertain to their role, or group.

    What I am envisioning is under one solution creating different projects that will hold the controllers and views for each one of these roles (business logic and dataaccess will be in separate projects as well)

    This way if i need to make drastic changes to say the sales portion, I can publish that and not affect the other portions at all.

    Would this work? Is it possible to do what I am thinking when they log in, and send them to the different controllers index actions?

    Please let me know your thoughts or how you would do this.

    Thank you!

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: MVC application design advice

    Hi there,

    The MVC is designed for the kind of thing you're looking to do. You don't have to split it out in different projects but there is nothing wrong with that. In essence every request will be handled by a controller in C# (I assume you're using C#). In your code you can determine the role the user is in and you can redirect to anywhere you wish. I would suggest going through a sample application (e.g. the nerd dinner application by Scott Guthrie) to give you an introduction to the whole thing and take it from there. I'm currently on my second MVC application and the framework is great.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)