Last change
on this file since ef1219a was d2e69be, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Add Route Attribute
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | using FarmatikoData.FarmatikoRepoInterfaces;
|
---|
2 | using FarmatikoData.FarmatikoServiceInterfaces;
|
---|
3 | using FarmatikoData.Models;
|
---|
4 | using System;
|
---|
5 | using System.Collections.Generic;
|
---|
6 | using System.Text;
|
---|
7 |
|
---|
8 | namespace FarmatikoServices.Services
|
---|
9 | {
|
---|
10 | public class HealthcareWorkerService : IHealthcareWorkerService
|
---|
11 | {
|
---|
12 | private IHealthcareWorkersRepository _workersRepository;
|
---|
13 | public HealthcareWorkerService(IHealthcareWorkersRepository workersRepository)
|
---|
14 | {
|
---|
15 | _workersRepository = workersRepository;
|
---|
16 | }
|
---|
17 | public void Add(HealthcareWorkers HealthcareWorker)
|
---|
18 | {
|
---|
19 | _workersRepository.Add(HealthcareWorker);
|
---|
20 | }
|
---|
21 |
|
---|
22 | public IEnumerable<HealthcareWorkers> GetAll()
|
---|
23 | {
|
---|
24 | return _workersRepository.GetAll();
|
---|
25 | }
|
---|
26 |
|
---|
27 | public IEnumerable<HealthcareWorkers> GetAllByBranch(string Branch)
|
---|
28 | {
|
---|
29 | return _workersRepository.GetByBranch(Branch);
|
---|
30 | }
|
---|
31 |
|
---|
32 | public IEnumerable<HealthcareWorkers> GetAllByFacility(HealthFacilities Facility)
|
---|
33 | {
|
---|
34 | return _workersRepository.GetByFacility(Facility);
|
---|
35 | }
|
---|
36 |
|
---|
37 | public HealthcareWorkers GetByName(string Name)
|
---|
38 | {
|
---|
39 | return _workersRepository.GetByName(Name);
|
---|
40 | }
|
---|
41 | }
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.