source: FarmatikoData/FarmatikoRepoInterfaces/IRepository.cs@ 5d02859

Last change on this file since 5d02859 was 5d02859, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add new repo, service and controller

  • Property mode set to 100644
File size: 1.2 KB
Line 
1using FarmatikoData.Models;
2using System.Linq;
3using System.Threading.Tasks;
4
5namespace FarmatikoData.FarmatikoRepoInterfaces
6{
7 public interface IRepository
8 {
9 //GET
10 Task<IQueryable<HealthcareWorkers>> GetAllWorkers();
11 Task<IQueryable<HealthFacilities>> GetFacilities();
12 Task<HealthFacilities> GetFacility(int Id);
13 Task<Medicine> GetMedicine(int Id);
14 Task<IQueryable<Medicine>> GetMedicines();
15 Task<Pandemic> GetPandemic();
16 Task<IQueryable<Pharmacy>> GetPharmacies();
17 Task<Pharmacy> GetPharmacy(int id);
18 Task<HealthcareWorkers> GetWorker(int id);
19 Task<IQueryable<HealthFacilities>> SearchFacilities(string query);
20 Task<IQueryable<Medicine>> SearchMedicines(string query);
21 Task<IQueryable<Pharmacy>> SearchPharmacies(string query);
22 Task<IQueryable<HealthcareWorkers>> SearchWorkers(string query);
23 //POST
24 Task AddWorker(HealthcareWorkers worker);
25 Task AddFacility(HealthFacilities healthFacilities);
26 Task AddPharmacy(Pharmacy pharmacy);
27 Task AddPharmacyHead(PharmacyHead pharmacyHead);
28 Task AddMedicines(Medicine medicine);
29 Task AddPandemic(Pandemic pandemic);
30 }
31}
Note: See TracBrowser for help on using the repository browser.