Budgeter 5000 - A Budgeting Prism 6 Windows Application Part 3, Services


 Today we will look into the implementation of two services created for Budgeter 5000.


 Account Service


AccountService contains the accounts and provides methods defined by an interface to access and change them.  I am initializing the accounts with static data for now.  The image below on contains the first few accounts I added.  For the complete list navigate here: https://github.com/twodawg/Budgeter5000/blob/master/Budget5000.Service/Service/AccountService.cs


Account Data


The AccountService uses a custom type called Account.  The definition for Account is located in the Infrastructure project.  The definition is below.

Account Model


Transaction Service 

The TransactionService will store, save, and retrieve financial entries.  It will be the programs account register.  

 Transaction Service

Data Manager

The TransactionService uses a helper class to save and retrieve the transactions from XML files.  Here is a partial view.  For the full file see: https://github.com/twodawg/Budgeter5000/blob/master/Budget5000.Service/Utility/DataManager.cs

Data Manager


The TransactionService uses a custom data type called Transaction.  The definition is contained in the Infrastructure project.



In the next article we will use these services in our view models.


The complete source code for this project is located on Github.



If you found this article helpful use the tweet button below to spread the word.  Thank you.


Leave your comment
11/17/2015 1:17 AM
Just found your series. Working on my first Prism app. Hope you continue and look forward to learning along with it.
11/17/2015 1:33 PM
Excellent!  Thank you for the comment!