Changeset 4e72684 for FarmatikoServices
- Timestamp:
- 07/29/20 20:02:58 (4 years ago)
- Branches:
- master
- Children:
- a55ef91
- Parents:
- de18858
- Location:
- FarmatikoServices
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/FarmatikoServiceInterfaces/IMedicineListService.cs
rde18858 r4e72684 1 1 using FarmatikoData.Models; 2 using System;3 2 using System.Collections.Generic; 4 using System.Text;5 3 6 4 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 8 6 public interface IMedicineListService 9 7 { 10 I Collection<MedicineList> GetAll();11 voidSetHasMedicine(MedicineList medicineList, bool HasMedicine);8 IEnumerable<MedicineList> GetAll(); 9 bool SetHasMedicine(MedicineList medicineList, bool HasMedicine); 12 10 ICollection<MedicineList> GetByName(string Name); 13 11 ICollection<MedicineList> GetByManufacturer(string Manufacturer); -
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.