source: FarmatikoServices/Services/HealthFacilityService.cs@ d2e69be

Last change on this file since d2e69be was d2e69be, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Add Route Attribute

  • Property mode set to 100644
File size: 1.1 KB
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 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.