source: FarmatikoData/FarmatikoRepoInterfaces/IRepository.cs@ 0a694bb

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

Fix create new user bug.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1using FarmatikoData.Models;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace FarmatikoData.FarmatikoRepoInterfaces
9{
10 public interface IRepository
11 {
12 //GET
13 Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
14 Task<IEnumerable<HealthFacility>> GetFacilities();
15 Task<HealthFacility> GetFacility(int Id);
16 Task<Medicine> GetMedicine(int Id);
17 Task<IEnumerable<Medicine>> GetMedicinesAsync();
18 ICollection<Medicine> GetMedicines();
19 Task<Pandemic> GetPandemic();
20 Task<List<PharmacyHeadMedicine>> GetAllPHMedicines();
21 Task<List<Pharmacy>> GetPharmacies();
22 Task<Pharmacy> GetPharmacy(int id);
23 Task<HealthcareWorker> GetWorker(int id);
24 Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
25 Task<IEnumerable<Medicine>> SearchMedicines(string query);
26 Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
27 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
28 HealthFacility GetFacilityJSON(string healthFacility);
29 IDictionary<string, User> GetUsers();
30
31 //POST
32 Task AddWorker(HealthcareWorker Worker);
33 Task AddFacility(HealthFacility healthFacility);
34 Task AddPharmacy(Pharmacy pharmacy);
35 Task AddPharmacyHead(PharmacyHead pharmacyHead);
36 Task AddMedicines(Medicine medicine);
37 Task AddPandemic(Pandemic pandemic);
38 Task UpdateFacility(HealthFacility healthFacility);
39 Task RemoveMedicine(Medicine medicine);
40 Task UpdatePandemic(Pandemic pandemic);
41 Task RemovePharmacy(Pharmacy pharmacy);
42 Task UpdateWorker(HealthcareWorker worker);
43 Task UpadatePharmacy(Pharmacy pharmacy);
44 Task UpdateMedicine(Medicine medicine);
45 Task RemovePharmacyHead(int Id);
46 User GetRole(string userName);
47 ICollection<PharmacyHeadMedicine> GetPHMedicines(string email);
48 Task<bool> AddUser(User user);
49 }
50}
Note: See TracBrowser for help on using the repository browser.