Last change
on this file since ef1219a was d2e69be, checked in by DimitarSlezenkovski <dslezenkovski@…>, 5 years ago |
Add Route Attribute
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[d2e69be] | 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 | public IEnumerable<HealthFacilities> GetByName(string name)
|
---|
| 29 | {
|
---|
| 30 | return _healthFacilityRepository.GetAllByName(name);
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | public IEnumerable<HealthFacilities> GetByType(string Type)
|
---|
| 34 | {
|
---|
| 35 | return _healthFacilityRepository.GetByType(Type);
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.