source: FarmatikoServices/Services/MedicineListService.cs@ e42f61a

Last change on this file since e42f61a was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Add more services

  • Property mode set to 100644
File size: 1.1 KB
Line 
1using FarmatikoData.FarmatikoRepo;
2using FarmatikoData.Models;
3using FarmatikoServices.FarmatikoServiceInterfaces;
4using System;
5using System.Collections.Generic;
6using System.Text;
7
8namespace FarmatikoServices.Services
9{
10 public class MedicineListService : IMedicineListService
11 {
12 private IMedicineListRepository _medicineListRepository;
13 public MedicineListService(IMedicineListRepository medicineListRepository)
14 {
15 _medicineListRepository = medicineListRepository;
16 }
17
18 public ICollection<MedicineList> GetAll()
19 {
20 return _medicineListRepository.GetAll();
21 }
22
23 public ICollection<MedicineList> GetByManufacturer(string Manufacturer)
24 {
25 return _medicineListRepository.GetByManufacturer(Manufacturer);
26 }
27
28 public ICollection<MedicineList> GetByName(string Name)
29 {
30 return _medicineListRepository.GetByName(Name);
31 }
32
33 public void SetHasMedicine(MedicineList medicineList, bool HasMedicine)
34 {
35 throw new NotImplementedException();
36 }
37 }
38}
Note: See TracBrowser for help on using the repository browser.