1 | using FarmatikoData.DTOs;
|
---|
2 | using FarmatikoData.Models;
|
---|
3 | using System.Collections.Generic;
|
---|
4 | using System.Linq;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 |
|
---|
7 | namespace FarmatikoServices.FarmatikoServiceInterfaces
|
---|
8 | {
|
---|
9 | public interface IService
|
---|
10 | {
|
---|
11 | //GET
|
---|
12 | Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
|
---|
13 | Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
|
---|
14 | Task<HealthcareWorker> GetWorker(int id);
|
---|
15 | Task<IEnumerable<HealthFacility>> GetFacilities();
|
---|
16 | Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
|
---|
17 | Task<HealthFacility> GetFacility(int id);
|
---|
18 | HealthFacility GetFacilityJSON(string healthFacility);
|
---|
19 | Task<Medicine> GetMedicine(int id);
|
---|
20 | Task<IEnumerable<Medicine>> SearchMedicines(string query);
|
---|
21 | Task<List<MedicineDTO>> GetMedicines();
|
---|
22 | Task<Pandemic> GetPandemic();
|
---|
23 | Task<List<PharmacyDTO>> GetPharmacies();
|
---|
24 | Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
|
---|
25 | Task<Pharmacy> GetPharmacy(int id);
|
---|
26 | //POST
|
---|
27 | Task AddWorker(HealthcareWorker worker);
|
---|
28 | Task AddFacility(HealthFacility healthFacilities);
|
---|
29 | Task AddPharmacy(Pharmacy pharmacy);
|
---|
30 | Task AddPharmacyHead(PharmacyHead pharmacyHead);
|
---|
31 | Task AddMedicines(Medicine medicine);
|
---|
32 | Task AddPandemic(Pandemic pandemic);
|
---|
33 | Task UpdateFacility(HealthFacility healthFacilities);
|
---|
34 | Task RemoveMedicine(Medicine medicine);
|
---|
35 | Task RemovePharmacyHead(int Id);
|
---|
36 | Task UpdatePandemic(Pandemic pandemic);
|
---|
37 | Task RemovePharmacy(Pharmacy pharmacy);
|
---|
38 | Task UpdateWorker(HealthcareWorker worker);
|
---|
39 | Task UpdatePharmacy(Pharmacy pharmacy);
|
---|
40 | }
|
---|
41 | }
|
---|