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