Changeset db484c9 for FarmatikoData/FarmatikoRepo/AdminRepo.cs
- Timestamp:
- 01/26/21 10:33:09 (4 years ago)
- Branches:
- master
- Children:
- 7d80751
- Parents:
- 8e74e2f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/FarmatikoRepo/AdminRepo.cs
r8e74e2f rdb484c9 27 27 public async Task<IEnumerable<PharmacyHead>> GetPharmacyHeads() 28 28 { 29 var PHeads = await _context.PharmacyHeads.OrderBy(x => x.Name).ToListAsync(); 29 var PHeads = await _context.PharmacyHeads 30 .Include(x => x.Medicines) 31 .Include(x => x.Pharmacies) 32 .OrderBy(x => x.Name) 33 .ToListAsync(); 30 34 return PHeads; 31 35 } 32 36 //POST 33 public void RemoveClaimRequest(int Id)37 public async void RemoveClaimRequest(int Id) 34 38 { 35 39 var req = _context.PHRequests.Where(x => x.Id == Id).FirstOrDefault(); 36 40 _context.PHRequests.Remove(req); 37 _context.SaveChanges();41 await _context.SaveChangesAsync(); 38 42 } 39 43 }
Note:
See TracChangeset
for help on using the changeset viewer.