Changeset 68454c6 for FarmatikoData/FarmatikoRepo
- Timestamp:
- 11/15/20 19:08:48 (4 years ago)
- Branches:
- master
- Children:
- 8b13eb2
- Parents:
- 1db5673
- Location:
- FarmatikoData/FarmatikoRepo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/FarmatikoRepo/PHRepo.cs
r1db5673 r68454c6 119 119 return pharms; 120 120 } 121 122 public void DeletePHMedicine(int id, int phId, int medId) 123 { 124 var PH = _context.PharmacyHeadMedicines.Where(x => x.PheadId == phId).Single(); 125 var PHMed = _context.PharmacyHeadMedicines.Where(x => x.MedicineId == medId).Single(); 126 var PHID = _context.PharmacyHeadMedicines.Where(x => x.Id == id).Single(); 127 _context.PharmacyHeadMedicines.Remove(PHID); 128 _context.SaveChanges(); 129 } 121 130 } 122 131 } -
FarmatikoData/FarmatikoRepo/Repository.cs
r1db5673 r68454c6 259 259 260 260 }).ToList(); 261 return Medicines; 261 return Medicines; 262 262 } 263 263
Note:
See TracChangeset
for help on using the changeset viewer.