Changeset a55ef91 for Farmatiko/Controllers/PharmacyHeadController.cs
- Timestamp:
- 07/31/20 10:15:02 (4 years ago)
- Branches:
- master
- Children:
- d8fafb8
- Parents:
- 4e72684
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/PharmacyHeadController.cs
r4e72684 ra55ef91 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Threading.Tasks; 1 using System.Linq; 5 2 using FarmatikoData.FarmatikoRepoInterfaces; 6 3 using FarmatikoData.Models; … … 23 20 return _pharmacyHeadRepository.GetAllPharmacies(NameOfPharmacy); 24 21 } 22 [HttpGet] 23 public IQueryable<PharmacyHead> GetPharmacyByName(string Name) 24 { 25 return _pharmacyHeadRepository.GetPharmacyByName(Name); 26 } 27 [HttpGet] 28 public IQueryable<MedicineList> GetPharmacyMedicines(string NameOfPharmacy) 29 { 30 return _pharmacyHeadRepository.GetPharmacyMedicines(NameOfPharmacy); 31 } 32 [HttpPost] 33 public void Add(PharmacyHead pharmacyHead) 34 { 35 _pharmacyHeadRepository.Add(pharmacyHead); 36 } 37 [HttpPost] 38 public void Remove(PharmacyHead pharmacyHead, string Name) 39 { 40 _pharmacyHeadRepository.Remove(pharmacyHead, Name); 41 } 25 42 } 26 43 }
Note:
See TracChangeset
for help on using the changeset viewer.