Changeset 68454c6 for FarmatikoServices
- Timestamp:
- 11/15/20 19:08:48 (4 years ago)
- Branches:
- master
- Children:
- 8b13eb2
- Parents:
- 1db5673
- Location:
- FarmatikoServices/Services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/Services/PHService.cs
r1db5673 r68454c6 66 66 if (pharmacyHead.PharmaciesList.Count() == 0) 67 67 pharmacyHead.PharmaciesList = null; 68 if (pharmacyHead.MedicineList.Count() == 0) 69 pharmacyHead.MedicineList = null; 68 70 69 71 70 phead.PHMedicineList = _repository.GetPHMedicines(phead.Email); … … 75 74 phead.MedicineList = pharmacyHead.MedicineList; 76 75 List<PharmacyHeadMedicine> list = new List<PharmacyHeadMedicine>(); 77 76 if (pharmacyHead.MedicineList.Count() == 0) 77 { 78 phead.MedicineList = null; 79 int PHMId = phead.PHMedicineList.Select(x => x.Id).Single(); 80 int phId = phead.PHMedicineList.Select(x => x.PheadId).Single(); 81 int medId = phead.PHMedicineList.Select(x => x.MedicineId).Single(); 82 _iPHRepo.DeletePHMedicine(PHMId, phId, medId); 83 return; 84 } 78 85 foreach (var med in phead.MedicineList) 79 86 { -
FarmatikoServices/Services/Service.cs
r1db5673 r68454c6 132 132 if (pharmacyHead != null) 133 133 { 134 var Medicines = await _repository.GetMedicinesAsync();134 /*var Medicines = await _repository.GetMedicinesAsync(); 135 135 foreach (var med in Medicines) 136 136 { 137 137 pharmacyHead.MedicineList.Add(med); 138 } 138 }*/ 139 139 140 140 await _repository.AddPharmacyHead(pharmacyHead);
Note:
See TracChangeset
for help on using the changeset viewer.