Last change
on this file since e42f61a was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 5 years ago |
Add more services
|
-
Property mode
set to
100644
|
File size:
771 bytes
|
Line | |
---|
1 | using FarmatikoData;
|
---|
2 | using FarmatikoData.FarmatikoRepoInterfaces;
|
---|
3 | using FarmatikoData.Models;
|
---|
4 | using System.Collections.Generic;
|
---|
5 | using System.Linq;
|
---|
6 |
|
---|
7 | namespace FarmatikoServices
|
---|
8 | {
|
---|
9 | public class HealthFacilityService : IHealthFacilityService
|
---|
10 | {
|
---|
11 | private IHealthFacilityRepository _healthFacilityRepository;
|
---|
12 |
|
---|
13 | public HealthFacilityService(IHealthFacilityRepository healthFacilityRepository)
|
---|
14 | {
|
---|
15 | _healthFacilityRepository = healthFacilityRepository;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public void Add(HealthFacilities healthFacility)
|
---|
19 | {
|
---|
20 | _healthFacilityRepository.Add(healthFacility);
|
---|
21 | }
|
---|
22 |
|
---|
23 | public IEnumerable<HealthFacilities> GetAll()
|
---|
24 | {
|
---|
25 | return _healthFacilityRepository.GetAll();
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.