Changeset a55ef91 for Farmatiko/Controllers/PharmacyController.cs
- Timestamp:
- 07/31/20 10:15:02 (5 years ago)
- Branches:
- master
- Children:
- d8fafb8
- Parents:
- 4e72684
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/PharmacyController.cs
r4e72684 ra55ef91 1 using System; 2 using System.Collections.Generic; 1 using System.Collections.Generic; 3 2 using System.Linq; 4 using System.Threading.Tasks;5 3 using FarmatikoData.Models; 6 4 using FarmatikoServices.FarmatikoServiceInterfaces; … … 19 17 } 20 18 [HttpGet] 21 public I Enumerable<Pharmacy> Get()19 public IQueryable<Pharmacy> Get() 22 20 { 23 21 return _pharmacyService.GetAll(); 24 22 } 23 [HttpGet] 24 public ICollection<Pharmacy> GetPharmacies() 25 { 26 return _pharmacyService.GetPharmacies(); 27 } 28 [HttpPost] 29 public void UpdatePharmacy(Pharmacy pharmacy, string Name) 30 { 31 _pharmacyService.UpdatePharmacy(pharmacy,Name); 32 } 33 [HttpPost] 34 public void AddPharmacy(Pharmacy pharmacy) 35 { 36 _pharmacyService.Add(pharmacy); 37 } 38 [HttpPost] 39 public void RemovePharmacy(Pharmacy pharmacy) 40 { 41 _pharmacyService.Remove(pharmacy); 42 } 25 43 } 26 44 }
Note:
See TracChangeset
for help on using the changeset viewer.