Last change
on this file since 4e72684 was 4e72684, checked in by DimitarSlezenkovski <dslezenkovski@…>, 5 years ago |
Add services
|
-
Property mode
set to
100644
|
File size:
828 bytes
|
Line | |
---|
1 | using FarmatikoData.FarmatikoRepoInterfaces;
|
---|
2 | using FarmatikoData.Models;
|
---|
3 | using FarmatikoServices.FarmatikoServiceInterfaces;
|
---|
4 | using System;
|
---|
5 | using System.Collections.Generic;
|
---|
6 |
|
---|
7 | namespace FarmatikoServices.Services
|
---|
8 | {
|
---|
9 | public class PandemicService : IPandemicService
|
---|
10 | {
|
---|
11 | private IPandemicRepository _pandemicRepository;
|
---|
12 | public PandemicService(IPandemicRepository pandemicRepository)
|
---|
13 | {
|
---|
14 | _pandemicRepository = pandemicRepository;
|
---|
15 | }
|
---|
16 |
|
---|
17 | public void Add(Pandemic pandemic)
|
---|
18 | {
|
---|
19 | _pandemicRepository.Add(pandemic);
|
---|
20 | }
|
---|
21 |
|
---|
22 | public IEnumerable<Pandemic> GetAll()
|
---|
23 | {
|
---|
24 | return _pandemicRepository.GetAll();
|
---|
25 | }
|
---|
26 |
|
---|
27 | public void Remove(Pandemic pandemic)
|
---|
28 | {
|
---|
29 | _pandemicRepository.Remove(pandemic);
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.