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 8766615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:35:58+00:00 2026-06-13T16:35:58+00:00

I am a bit new to the ASP.NET MVC framework making the move from

  • 0

I am a bit new to the ASP.NET MVC framework making the move from Ruby on Rails 3 and it’s ActiveRecord. Please help me understand the place of dalAccess in the MVC.

[HttpGet]
    public ActionResult copyCampaign(int Id)
    {
        DALAccess dalaccess = new DALAccess();
        //string newid = dalaccess.CopyOffer(Id);
        string newid = dalaccess.CopyOfferByCampaignId(Id);

        string type = PrepareOffer4Edit(newid);
        if (type == "bundle")
            return RedirectToAction("bundleStep1");
        else if (type == "scratchOff")
            return RedirectToAction("scratchOffStep1");
        else
        {
            return RedirectToAction("CampaignMgmt", "CampaignMgmt");
        }
    }
  • 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-06-13T16:36:00+00:00Added an answer on June 13, 2026 at 4:36 pm

    The purpose of having s DAL (Data Access Layer) is the concept of Separation of Concerns. This also works for the Single Responsibility Principle.

    The DAL provide a way for you to retrieve your data objects from their source without having to worry about where the data comes from or how to transform it. This allow you to create tests specifically for your data access functionality to help identify issues.

    The separation also comes in handy if and when you need to write a another application (or let’s say a 2nd front end) that uses the same data.

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

Sidebar

Related Questions

I'm a bit new to ASP.NET MVC and I'm wondering if there is a
I tried to create one more new ASP.NET MVC application (with Entity Framework) and
I'm new to MVC and I borrow a book from library yesterday on asp.net
I'm working through the SportsStore example from Pro ASP.NET MVC 3 Framework . At
I'm a bit new to ASP .NET MVC and I'm having trouble understanding the
I am a little bit new to ASP.NET MVC, after searching I still have
I am new to ASP.NET MVC and am finding the options for displaying something
I'm rather new to the ASP.net MVC world and I'm trying to figure out
Trying my way on a little bit of JSON here in my asp.net mvc
I am working with an ASP.NET MVC project which was originally started from the

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.