using FarmatikoData.FarmatikoRepo; using FarmatikoData.FarmatikoRepoInterfaces; using FarmatikoData.Models; using FarmatikoServices.FarmatikoServiceInterfaces; using System; using System.Collections.Generic; using System.Text; namespace FarmatikoServices.Services { public class HealthcareWorkerService : IHealthcareWorkerService { private IHealthcareWorkerRepository _healthcareWorkerRepo; public HealthcareWorkerService(IHealthcareWorkerRepository healthcareWorkerRepo) { _healthcareWorkerRepo = healthcareWorkerRepo; } public void Add(HealthcareWorkers healthcareWorker) { _healthcareWorkerRepo.Add(healthcareWorker); } public IEnumerable GetAll() { return _healthcareWorkerRepo.GetAll(); } } }