source: FarmatikoServices/Services/HealthcareWorkerService.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: 850 bytes
Line 
1using FarmatikoData.FarmatikoRepo;
2using FarmatikoData.FarmatikoRepoInterfaces;
3using FarmatikoData.Models;
4using FarmatikoServices.FarmatikoServiceInterfaces;
5using System;
6using System.Collections.Generic;
7using System.Text;
8
9namespace 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.