Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4113870
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:22:55+00:00 2026-05-20T22:22:55+00:00

I have an MVC app divided into the usual layers: MVC presentation layer, Business

  • 0

I have an MVC app divided into the usual layers: MVC presentation layer, Business Logic, and Data Access Layer.

In the MVC app I have a search form. It’s a complex one – lots of checkboxes, radios, dropdowns and text fields. When the user submits the form I create an “EditModel” (ActionModel?) object in the Controller that contains a set of properties encapsulating the form.

The DAL needs to use the properties in this object to construct a query that returns the right results based on the user’s selection.

What is the best way of passing this through to the DAL (which obviously has no reference to the MVC project). Is it to create a DTO which is exactly the same as the EditModel (ActionModel?) , just for the purposes of passing it from MVC -> BLL -> DAL? Are there any better ways?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:22:55+00:00Added an answer on May 20, 2026 at 10:22 pm

    If the object would truly be “exactly the same,” why wouldn’t you just use it in the BLL and DAL? It would make sense to have an assembly referenced by both the model and the BLL (and DAL).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC app that uses Linq2Sql to access a SQL DB. But
I have a MVC app using the UnitOfWork, Service Layer, Repository Pattern and EF4
I'm looking into moving an existing app to Azure. It will have an MVC
I have MVC 1.0 app on VS2008. I have webpage that has a search
I have a Spring MVC app that does not protect updates of user data
I have a MVC app and using JQuery. I have anchor that I setup
I have an MVC app that does a lot of work with jQuery ajax
I have C# MVC web app that has some textboxes that in IE9 you
I have an asp.net mvc app running on a local iis website that is
I have an ASP.NET MVC app that opens a Request view in a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.