Today we will look into the implementation of two services created for Budgeter 5000.
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
The AccountService uses a custom type called Account. The definition for Account is located in the Infrastructure project. The definition is below.
The TransactionService will store, save, and retrieve financial entries. It will be the programs account register.
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
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.