Changeset c406ae5 for Farmatiko/Controllers
- Timestamp:
- 08/05/20 18:39:58 (4 years ago)
- Branches:
- master
- Children:
- 63d885e
- Parents:
- a6bbad1
- Location:
- Farmatiko/Controllers
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Controllers/HealthFacilitiesController.cs
ra6bbad1 rc406ae5 26 26 } 27 27 [HttpGet] 28 public IQueryable<HealthFacilities> Get()28 public Task<IQueryable<HealthFacilities>> Get() 29 29 { 30 30 return _healthFacilitiesService.GetAll(); -
Farmatiko/Controllers/HealthcareWorkerController.cs
ra6bbad1 rc406ae5 1 1 using System.Linq; 2 using System.Threading.Tasks; 2 3 using FarmatikoData.Models; 3 4 using FarmatikoServices.FarmatikoServiceInterfaces; … … 17 18 18 19 [HttpGet] 19 public IQueryable<HealthcareWorkers> Get()20 public Task<IQueryable<HealthcareWorkers>> Get() 20 21 { 21 22 return _healthcareWorkerService.GetAll(); -
Farmatiko/Controllers/MedicineController.cs
ra6bbad1 rc406ae5 1 1 using System.Linq; 2 using System.Threading.Tasks; 2 3 using FarmatikoData.Models; 3 4 using FarmatikoServices.FarmatikoServiceInterfaces; … … 16 17 } 17 18 [HttpGet] 18 public IQueryable<Medicine> Get()19 public Task<IQueryable<Medicine>> Get() 19 20 { 20 21 return _medicineService.GetAll(); -
Farmatiko/Controllers/MedicineListController.cs
ra6bbad1 rc406ae5 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<MedicineList> Get()20 public Task<IQueryable<MedicineList>> Get() 20 21 { 21 22 return _medicineListService.GetAll(); 22 23 } 23 24 [HttpGet] 24 public ICollection<MedicineList> GetByName(string Name)25 public Task<ICollection<MedicineList>> GetByName(string Name) 25 26 { 26 27 return _medicineListService.GetByName(Name); 27 28 } 28 29 [HttpGet] 29 public ICollection<MedicineList> GetByManufacturer(string Manufacturer)30 public Task<ICollection<MedicineList>> GetByManufacturer(string Manufacturer) 30 31 { 31 32 return _medicineListService.GetByManufacturer(Manufacturer); -
Farmatiko/Controllers/PandemicController.cs
ra6bbad1 rc406ae5 1 1 using System.Linq; 2 using System.Threading.Tasks; 2 3 using FarmatikoData.Models; 3 4 using FarmatikoServices.FarmatikoServiceInterfaces; … … 16 17 } 17 18 [HttpGet] 18 public IQueryable<Pandemic> Get()19 public Task<IQueryable<Pandemic>> Get() 19 20 { 20 21 return _pandemicService.GetAll(); -
Farmatiko/Controllers/PharmacyController.cs
ra6bbad1 rc406ae5 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] -
Farmatiko/Controllers/PharmacyHeadController.cs
ra6bbad1 rc406ae5 36 36 } 37 37 [HttpPost] 38 public void Remove(PharmacyHead pharmacyHead , string Name)38 public void Remove(PharmacyHead pharmacyHead) 39 39 { 40 _pharmacyHeadRepository.Remove(pharmacyHead , Name);40 _pharmacyHeadRepository.Remove(pharmacyHead); 41 41 } 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.