source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs@ 0a694bb

Last change on this file since 0a694bb was 0a694bb, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 22 months ago

Fix create new user bug.

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