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

  • Home
  • SEARCH
  • 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 6895337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:53:45+00:00 2026-05-27T06:53:45+00:00

I am using ASP.net MVC3 for my presentation layer and my data access and

  • 0

I am using ASP.net MVC3 for my presentation layer and my data access and business logic are exposed through a WCF Service. Should my controllers call the WCF service or should there be a further level of abstraction such as a repository which calls the WCF service.

Repository which calls the service

public ProductController(IProductRepository productRepository)
{
      _productRepository = productRepository;
}

public ProductRepository(ProductServiceClient client)
{
      _client = client;
}

Service directly in the controllers

public ProductController(ProductServiceClient client)
{
      _client = client;
}

The repository classes do nothing apart from call the methods exposed via the service.

  • 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-27T06:53:46+00:00Added an answer on May 27, 2026 at 6:53 am

    Sorry I am well confused about your question, but I am sorry if I have misunderstood. Hope my pointers will clear this up.

    1. Repositories related to persistence and define a way to handle the
      infrastructure layer i.e. dealing with data (in memory repository,
      sql repository or generic one)
    2. Services if you like use these repositories to perform the
      contractual operations such as getting the client in your case.
    3. Services are called by clients or someone that requests services and
      service in turn calls the repository which in turn calls the data
      operations.

    So you may need to change your wcf to work with repositories and let your controller call services..hope that helps

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

Sidebar

Related Questions

Introduction I'm using ASP.Net MVC3. My Controllers talk to a service layer, and the
I am writing a simple proof-of-concept web service using ASP.NET MVC3 controller with JSON
Using ASP.NET MVC3 C# AND MS SQL 2008 I'm developing a Software As Service
Currently I am using Amazon Cloudfront to service static objects on my ASP.Net MVC3
Using: ASP.NET MVC3 Ninject 2 Fluent nHibernate I have 2 databases (DB1 & DB2).
I am using asp.net mvc3. I am making a bitmap using text by system.drawing.
I'm using ASP.Net MVC3, and serving up files using this: public class ByteResult :
I am using ASP.NET MVC3 for my web application. To display a button in
i'm using asp.net mvc3 with jquery datepicker widget. i want the user to click
I am using Asp.net mvc3 and displaying the .pdf file on my one of

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.