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
|
Rev | Line | |
---|
[5d02859] | 1 | using FarmatikoData.Models;
|
---|
| 2 | using System.Linq;
|
---|
| 3 | using System.Threading.Tasks;
|
---|
| 4 |
|
---|
| 5 | namespace FarmatikoServices.FarmatikoServiceInterfaces
|
---|
| 6 | {
|
---|
| 7 | public interface IService
|
---|
| 8 | {
|
---|
| 9 | //GET
|
---|
| 10 | Task<IQueryable<HealthcareWorkers>> GetAllWorkers();
|
---|
| 11 | Task<IQueryable<HealthcareWorkers>> SearchWorkers(string query);
|
---|
| 12 | Task<HealthcareWorkers> GetWorker(int id);
|
---|
| 13 | Task<IQueryable<HealthFacilities>> GetFacilities();
|
---|
| 14 | Task<IQueryable<HealthFacilities>> SearchFacilities(string query);
|
---|
| 15 | Task<HealthFacilities> GetFacility(int id);
|
---|
| 16 | Task<Medicine> GetMedicine(int id);
|
---|
| 17 | Task<IQueryable<Medicine>> SearchMedicines(string query);
|
---|
| 18 | Task<IQueryable<Medicine>> GetMedicines();
|
---|
| 19 | Task<Pandemic> GetPandemic();
|
---|
| 20 | Task<IQueryable<Pharmacy>> GetPharmacies();
|
---|
| 21 | Task<IQueryable<Pharmacy>> SearchPharmacies(string query);
|
---|
| 22 | Task<Pharmacy> GetPharmacy(int id);
|
---|
| 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.