source: FarmatikoServices/Services/HealthcareWorkerService.cs@ e42f61a

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
RevLine 
[e42f61a]1using FarmatikoData.FarmatikoRepo;
2using FarmatikoData.FarmatikoRepoInterfaces;
[d2e69be]3using FarmatikoData.Models;
[e42f61a]4using FarmatikoServices.FarmatikoServiceInterfaces;
[d2e69be]5using System;
6using System.Collections.Generic;
7using System.Text;
8
9namespace 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.