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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:47:33+00:00 2026-05-20T01:47:33+00:00

Im working on a fairly light weight client application (desktop app in .Net as

  • 0

Im working on a fairly light weight client application (desktop app in .Net as connect to other applications maybe needed in the future) for tracking of RMAs within a business for the engineers, engineers will view and update the status in the application, customers will create/view RMAs on the website.

I want to know if my intended use of service and repository classes are correct. A web service provides the data in JSON format from which I can construct an RMAobject. This web service is accessed by http://myRMA.com/repairs/2234/RMA.JSON

Would the code to get the RMA sit within RMARepository class with a method like GetRMA(int RMAId), and should the RMARepository follow the singleton design pattern?

Whereas if the RMA is updated, i.e. Item is inspecting and pending a quote acceptance, is this completed in a service class, which calls a RMARepository to submit an update. Would the IsExists(int RMAId) be in this service class or be in the repository?

I am familiar with Presentation – Application (Logic) – Data Access – Data (Database) artitecture, and also with MVP. But i do wonder where the Service classes fit in.

  • 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-20T01:47:34+00:00Added an answer on May 20, 2026 at 1:47 am

    The repository classes are only used to access and store information in the database. They should have no other logic.

    Services are used to fetch information from a data source (most likely a repository), process the information and return the result to the caller.

    A service class can use multiple repositories to achieve the wanted result. In this layer you can also have a event system which can allow one service to take actions when another service have generated an event.

    An example would be that the the UserService calls the FeedService to create a new RSS feed item for each newly created user.

    The Repository layer can be represented by a ORM such as nhibernate.

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

Sidebar

Related Questions

I've got an Objective-C/cocoa based application that I'm working on. This app is client<->server.
I am fairly comfortable with standalone Java app development, but will soon be working
I'm fairly new to VB.NET, and I'm working on a text editor with a
I'm working on a fairly complex project, a custom encryption routine if you will
I've started working on a fairly complicated software. It is for a personal project,
I am working in Java on a fairly large project. My question is about
On a recent project I have been working on in C#/ASP.NET I have some
I have a menu working fairly well but can't figure out how to make
I have the following function in access, which was working fairly well. But now
I am working with a fairly complex solution in Visual Studio 2008. It contains

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.