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
|
Rev | Line | |
---|
[e42f61a] | 1 | using FarmatikoData.FarmatikoRepo;
|
---|
| 2 | using FarmatikoData.FarmatikoRepoInterfaces;
|
---|
[d2e69be] | 3 | using FarmatikoData.Models;
|
---|
[e42f61a] | 4 | using FarmatikoServices.FarmatikoServiceInterfaces;
|
---|
[d2e69be] | 5 | using System;
|
---|
| 6 | using System.Collections.Generic;
|
---|
| 7 | using System.Text;
|
---|
| 8 |
|
---|
| 9 | namespace FarmatikoServices.Services
|
---|
| 10 | {
|
---|
| 11 | public class HealthcareWorkerService : IHealthcareWorkerService
|
---|
| 12 | {
|
---|
[e42f61a] | 13 | private IHealthcareWorkerRepository _healthcareWorkerRepo;
|
---|
| 14 | public HealthcareWorkerService(IHealthcareWorkerRepository healthcareWorkerRepo)
|
---|
[d2e69be] | 15 | {
|
---|
[e42f61a] | 16 | _healthcareWorkerRepo = healthcareWorkerRepo;
|
---|
[d2e69be] | 17 | }
|
---|
[e42f61a] | 18 | public void Add(HealthcareWorkers healthcareWorker)
|
---|
[d2e69be] | 19 | {
|
---|
[e42f61a] | 20 | _healthcareWorkerRepo.Add(healthcareWorker);
|
---|
[d2e69be] | 21 | }
|
---|
| 22 |
|
---|
| 23 | public IEnumerable<HealthcareWorkers> GetAll()
|
---|
| 24 | {
|
---|
[e42f61a] | 25 | return _healthcareWorkerRepo.GetAll();
|
---|
[d2e69be] | 26 | }
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.