Changeset 1454207 for FarmatikoData/FarmatikoRepoInterfaces
- Timestamp:
- 10/01/20 03:17:09 (4 years ago)
- Branches:
- master
- Children:
- 6f203af
- Parents:
- 5d02859
- Location:
- FarmatikoData/FarmatikoRepoInterfaces
- Files:
-
- 2 added
- 7 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoData/FarmatikoRepoInterfaces/IRepository.cs
r5d02859 r1454207 1 1 using FarmatikoData.Models; 2 using System; 3 using System.Collections.Generic; 2 4 using System.Linq; 5 using System.Text; 3 6 using System.Threading.Tasks; 4 7 … … 8 11 { 9 12 //GET 10 Task<IQueryable<HealthcareWorker s>> GetAllWorkers();11 Task<IQueryable<HealthFacilit ies>> GetFacilities();12 Task<HealthFacilit ies> GetFacility(int Id);13 Task<IQueryable<HealthcareWorker>> GetAllWorkers(); 14 Task<IQueryable<HealthFacility>> GetFacilities(); 15 Task<HealthFacility> GetFacility(int Id); 13 16 Task<Medicine> GetMedicine(int Id); 14 17 Task<IQueryable<Medicine>> GetMedicines(); … … 16 19 Task<IQueryable<Pharmacy>> GetPharmacies(); 17 20 Task<Pharmacy> GetPharmacy(int id); 18 Task<HealthcareWorker s> GetWorker(int id);19 Task<IQueryable<HealthFacilit ies>> SearchFacilities(string query);21 Task<HealthcareWorker> GetWorker(int id); 22 Task<IQueryable<HealthFacility>> SearchFacilities(string query); 20 23 Task<IQueryable<Medicine>> SearchMedicines(string query); 21 24 Task<IQueryable<Pharmacy>> SearchPharmacies(string query); 22 Task<IQueryable<HealthcareWorkers>> SearchWorkers(string query); 25 Task<IQueryable<HealthcareWorker>> SearchWorkers(string query); 26 Task<HealthFacility> GetFacilityJSON(string healthFacility); 27 23 28 //POST 24 Task AddWorker(HealthcareWorker s worker);25 Task AddFacility(HealthFacilit ies healthFacilities);29 Task AddWorker(HealthcareWorker Worker); 30 Task AddFacility(HealthFacility healthFacility); 26 31 Task AddPharmacy(Pharmacy pharmacy); 27 32 Task AddPharmacyHead(PharmacyHead pharmacyHead); 28 33 Task AddMedicines(Medicine medicine); 29 34 Task AddPandemic(Pandemic pandemic); 35 Task UpdateFacility(HealthFacility healthFacility); 36 Task RemoveMedicine(Medicine medicine); 37 Task UpdatePandemic(Pandemic pandemic); 38 Task RemovePharmacy(Pharmacy pharmacy); 39 Task UpdateWorker(HealthcareWorker worker); 40 Task UpadatePharmacy(Pharmacy pharmacy); 41 Task UpdateMedicine(Medicine medicine); 42 Task RemovePharmacyHead(PharmacyHead pharmacyHead); 30 43 } 31 44 }
Note:
See TracChangeset
for help on using the changeset viewer.