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