Changeset 4e72684 for FarmatikoServices/Services/MedicineListService.cs
- Timestamp:
- 07/29/20 20:02:58 (4 years ago)
- Branches:
- master
- Children:
- a55ef91
- Parents:
- de18858
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/Services/MedicineListService.cs
rde18858 r4e72684 2 2 using FarmatikoData.Models; 3 3 using FarmatikoServices.FarmatikoServiceInterfaces; 4 using System;5 4 using System.Collections.Generic; 6 using System.Text;7 5 8 6 namespace FarmatikoServices.Services … … 16 14 } 17 15 18 public I Collection<MedicineList> GetAll()16 public IEnumerable<MedicineList> GetAll() 19 17 { 20 18 return _medicineListRepository.GetAll(); … … 28 26 public ICollection<MedicineList> GetByName(string Name) 29 27 { 30 return _medicineListRepository.GetByName(Name); 28 if(Name != null) 29 { 30 return _medicineListRepository.GetByName(Name); 31 } 32 return null; 31 33 } 32 34 33 public voidSetHasMedicine(MedicineList medicineList, bool HasMedicine)35 public bool SetHasMedicine(MedicineList medicineList, bool HasMedicine) 34 36 { 35 throw new NotImplementedException(); 37 if (medicineList != null) 38 { 39 _medicineListRepository.SetHasMedicine(medicineList, HasMedicine); 40 return true; 41 } 42 else return false; 36 43 } 37 44 }
Note:
See TracChangeset
for help on using the changeset viewer.