Changeset 63d885e for Farmatiko/Controllers/PharmacyController.cs
- Timestamp:
- 08/07/20 11:01:25 (4 years ago)
- Branches:
- master
- Children:
- 5d02859
- Parents:
- ee137aa (diff), c406ae5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/PharmacyController.cs
ree137aa r63d885e 1 1 using System.Collections.Generic; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 using FarmatikoData.Models; 4 5 using FarmatikoServices.FarmatikoServiceInterfaces; … … 17 18 } 18 19 [HttpGet] 19 public IQueryable<Pharmacy> Get()20 public Task<IQueryable<Pharmacy>> Get() 20 21 { 21 22 return _pharmacyService.GetAll(); 22 23 } 23 24 [HttpGet] 24 public ICollection<Pharmacy> GetPharmacies()25 public Task<ICollection<Pharmacy>> GetPharmacies() 25 26 { 26 27 return _pharmacyService.GetPharmacies(); 27 28 } 28 29 [HttpPost] 29 public void UpdatePharmacy(Pharmacy pharmacy , string Name)30 public void UpdatePharmacy(Pharmacy pharmacy) 30 31 { 31 _pharmacyService.UpdatePharmacy(pharmacy ,Name);32 _pharmacyService.UpdatePharmacy(pharmacy); 32 33 } 33 34 [HttpPost]
Note:
See TracChangeset
for help on using the changeset viewer.