source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs@ afefe75

Last change on this file since afefe75 was afefe75, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 4 years ago

Update searches, fix bugs

  • Property mode set to 100644
File size: 1.7 KB
Line 
1using FarmatikoData.DTOs;
2using FarmatikoData.Models;
3using System.Collections.Generic;
4using System.Linq;
5using System.Threading.Tasks;
6
7namespace 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}
Note: See TracBrowser for help on using the repository browser.