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