source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs@ 1454207

Last change on this file since 1454207 was 1454207, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Change structure, Add repo, services & controllers

  • Property mode set to 100644
File size: 1.6 KB
Line 
1using FarmatikoData.Models;
2using System.Linq;
3using System.Threading.Tasks;
4
5namespace FarmatikoServices.FarmatikoServiceInterfaces
6{
7 public interface IService
8 {
9 //GET
10 Task<IQueryable<HealthcareWorker>> GetAllWorkers();
11 Task<IQueryable<HealthcareWorker>> SearchWorkers(string query);
12 Task<HealthcareWorker> GetWorker(int id);
13 Task<IQueryable<HealthFacility>> GetFacilities();
14 Task<IQueryable<HealthFacility>> SearchFacilities(string query);
15 Task<HealthFacility> GetFacility(int id);
16 Task<HealthFacility> GetFacilityJSON(string healthFacility);
17 Task<Medicine> GetMedicine(int id);
18 Task<IQueryable<Medicine>> SearchMedicines(string query);
19 Task<IQueryable<Medicine>> GetMedicines();
20 Task<Pandemic> GetPandemic();
21 Task<IQueryable<Pharmacy>> GetPharmacies();
22 Task<IQueryable<Pharmacy>> SearchPharmacies(string query);
23 Task<Pharmacy> GetPharmacy(int id);
24 //POST
25 Task AddWorker(HealthcareWorker worker);
26 Task AddFacility(HealthFacility healthFacilities);
27 Task AddPharmacy(Pharmacy pharmacy);
28 Task AddPharmacyHead(PharmacyHead pharmacyHead);
29 Task AddMedicines(Medicine medicine);
30 Task AddPandemic(Pandemic pandemic);
31 Task UpdateFacility(HealthFacility healthFacilities);
32 Task RemoveMedicine(Medicine medicine);
33 Task RemovePharmacyHead(PharmacyHead pharmacyHead);
34 Task UpdatePandemic(Pandemic pandemic);
35 Task RemovePharmacy(Pharmacy pharmacy);
36 Task UpdateWorker(HealthcareWorker worker);
37 Task UpdatePharmacy(Pharmacy pharmacy);
38 }
39}
Note: See TracBrowser for help on using the repository browser.