source: FarmatikoServices/Services/HealthFacilityService.cs@ 4e72684

Last change on this file since 4e72684 was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add more services

  • Property mode set to 100644
File size: 771 bytes
Line 
1using FarmatikoData;
2using FarmatikoData.FarmatikoRepoInterfaces;
3using FarmatikoData.Models;
4using System.Collections.Generic;
5using System.Linq;
6
7namespace 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.