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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:06:34+00:00 2026-05-19T02:06:34+00:00

I am using MVC 3. I am trying to get my head around the

  • 0

I am using MVC 3. I am trying to get my head around the services layer and the service. I am currently working through the sample app that comes with the DoFactory source code. This question is based on the sample application, but in general.

There is a service layer (WCF) that exposes a set of service methods. The service layer implements a single point of entry (the Façade pattern) through which all communication with the layers below must occur. The Façade is the entry point into the business layer and exposes a very simple, course-grained API.

Lets says I am trying to get a list of clients, then in the MVC controller it will call the repository’s GetCustomers method, then this will call the service layers GetCustomers method.

I think I am a bit confused here. Is this application architecture correct? Shouldn’t the controller call the service layer’s method and then this call repository’s method. I always thought that the repository was always the last method called to get data?

Please can someone help clarify this?

  • 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-19T02:06:35+00:00Added an answer on May 19, 2026 at 2:06 am

    Your architecture is correct.

    I always thought that the repository was always the last method called to get data?

    Yes, in your case the data comes from a WCF service but it could be anything: SQL database, XML file, …

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

Sidebar

Related Questions

I am working on project using MVC 3.0(Razor framework). I am trying to get
I'm trying to get an ASP.NET MVC app working... I should have known it
I am trying to get an old application, that was written using a mvc
essentially what I'm trying to do is get my head around Microsoft's ASP.NET MVC
I am using MVC 3 with VS2010 and trying to get [HandleError] working. I
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
I'm new to nHibernate, and trying to get my head around the proper way
I'm trying to get a test application running using MVC WEB API but i
I am using Spring MVC 2.5, and I am trying to get a JSTL
I'm trying to get better at using MVC/MVP style patterns with my WinForm apps

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.