Changeset 6f203af for FarmatikoServices/FarmatikoServiceInterfaces
- Timestamp:
- 10/28/20 22:06:48 (4 years ago)
- Branches:
- master
- Children:
- 993189e
- Parents:
- 1454207
- Location:
- FarmatikoServices/FarmatikoServiceInterfaces
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/FarmatikoServiceInterfaces/IAdminService.cs
r1454207 r6f203af 10 10 public interface IAdminService 11 11 { 12 Task<I Queryable<PharmacyHead>> GetPharmacyHeads();13 Task<I Queryable<RequestPharmacyHead>> GetCalimingRequests();14 TaskRejectRequest(RequestPharmacyHead req);12 Task<IEnumerable<PharmacyHead>> GetPharmacyHeads(); 13 Task<IEnumerable<RequestPharmacyHead>> GetClaimingRequests(); 14 bool RejectRequest(RequestPharmacyHead req); 15 15 } 16 16 } -
FarmatikoServices/FarmatikoServiceInterfaces/IPHService.cs
r1454207 r6f203af 10 10 public interface IPHService 11 11 { 12 Task<I Queryable<PharmacyHead>> GetPharmacyHeadInfo(string Token);12 Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo(string Token); 13 13 Task UpdatePharmacyHead(PharmacyHead pharmacyHead); 14 14 Task<int> Login(PharmacyHead pharmacyHead); 15 Task ClaimPharmacy(RequestPharmacyHead pharmacy); 15 Task<bool> ClaimPharmacy(RequestPharmacyHead pharmacy); 16 Task<PharmacyHead> GetPharmacyHeadByIdAsync(int id); 17 Task<bool> Add(PharmacyHead pharmacyHead); 18 Task<bool> Remove(int id); 19 Task<bool> RemoveClaimingRequest(int id); 16 20 } 17 21 } -
FarmatikoServices/FarmatikoServiceInterfaces/IService.cs
r1454207 r6f203af 1 1 using FarmatikoData.Models; 2 using System.Collections.Generic; 2 3 using System.Linq; 3 4 using System.Threading.Tasks; … … 8 9 { 9 10 //GET 10 Task<I Queryable<HealthcareWorker>> GetAllWorkers();11 Task<I Queryable<HealthcareWorker>> SearchWorkers(string query);11 Task<IEnumerable<HealthcareWorker>> GetAllWorkers(); 12 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query); 12 13 Task<HealthcareWorker> GetWorker(int id); 13 Task<I Queryable<HealthFacility>> GetFacilities();14 Task<I Queryable<HealthFacility>> SearchFacilities(string query);14 Task<IEnumerable<HealthFacility>> GetFacilities(); 15 Task<IEnumerable<HealthFacility>> SearchFacilities(string query); 15 16 Task<HealthFacility> GetFacility(int id); 16 17 Task<HealthFacility> GetFacilityJSON(string healthFacility); 17 18 Task<Medicine> GetMedicine(int id); 18 Task<I Queryable<Medicine>> SearchMedicines(string query);19 Task<I Queryable<Medicine>> GetMedicines();19 Task<IEnumerable<Medicine>> SearchMedicines(string query); 20 Task<IEnumerable<Medicine>> GetMedicines(); 20 21 Task<Pandemic> GetPandemic(); 21 Task<I Queryable<Pharmacy>> GetPharmacies();22 Task<I Queryable<Pharmacy>> SearchPharmacies(string query);22 Task<IEnumerable<Pharmacy>> GetPharmacies(); 23 Task<IEnumerable<Pharmacy>> SearchPharmacies(string query); 23 24 Task<Pharmacy> GetPharmacy(int id); 24 25 //POST … … 31 32 Task UpdateFacility(HealthFacility healthFacilities); 32 33 Task RemoveMedicine(Medicine medicine); 33 Task RemovePharmacyHead( PharmacyHead pharmacyHead);34 Task RemovePharmacyHead(int Id); 34 35 Task UpdatePandemic(Pandemic pandemic); 35 36 Task RemovePharmacy(Pharmacy pharmacy);
Note:
See TracChangeset
for help on using the changeset viewer.