source: FarmatikoServices/Services/PandemicService.cs@ 4e72684

Last change on this file since 4e72684 was 4e72684, checked in by DimitarSlezenkovski <dslezenkovski@…>, 3 years ago

Add services

  • Property mode set to 100644
File size: 828 bytes
Line 
1using FarmatikoData.FarmatikoRepoInterfaces;
2using FarmatikoData.Models;
3using FarmatikoServices.FarmatikoServiceInterfaces;
4using System;
5using System.Collections.Generic;
6
7namespace FarmatikoServices.Services
8{
9 public class PandemicService : IPandemicService
10 {
11 private IPandemicRepository _pandemicRepository;
12 public PandemicService(IPandemicRepository pandemicRepository)
13 {
14 _pandemicRepository = pandemicRepository;
15 }
16
17 public void Add(Pandemic pandemic)
18 {
19 _pandemicRepository.Add(pandemic);
20 }
21
22 public IEnumerable<Pandemic> GetAll()
23 {
24 return _pandemicRepository.GetAll();
25 }
26
27 public void Remove(Pandemic pandemic)
28 {
29 _pandemicRepository.Remove(pandemic);
30 }
31 }
32}
Note: See TracBrowser for help on using the repository browser.