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