Ignore:
Timestamp:
10/28/20 22:06:48 (2 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
993189e
Parents:
1454207
Message:

Change methods & add error controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoServices/FarmatikoServiceInterfaces/IService.cs

    r1454207 r6f203af  
    11using FarmatikoData.Models;
     2using System.Collections.Generic;
    23using System.Linq;
    34using System.Threading.Tasks;
     
    89    {
    910        //GET
    10         Task<IQueryable<HealthcareWorker>> GetAllWorkers();
    11         Task<IQueryable<HealthcareWorker>> SearchWorkers(string query);
     11        Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
     12        Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
    1213        Task<HealthcareWorker> GetWorker(int id);
    13         Task<IQueryable<HealthFacility>> GetFacilities();
    14         Task<IQueryable<HealthFacility>> SearchFacilities(string query);
     14        Task<IEnumerable<HealthFacility>> GetFacilities();
     15        Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
    1516        Task<HealthFacility> GetFacility(int id);
    1617        Task<HealthFacility> GetFacilityJSON(string healthFacility);
    1718        Task<Medicine> GetMedicine(int id);
    18         Task<IQueryable<Medicine>> SearchMedicines(string query);
    19         Task<IQueryable<Medicine>> GetMedicines();
     19        Task<IEnumerable<Medicine>> SearchMedicines(string query);
     20        Task<IEnumerable<Medicine>> GetMedicines();
    2021        Task<Pandemic> GetPandemic();
    21         Task<IQueryable<Pharmacy>> GetPharmacies();
    22         Task<IQueryable<Pharmacy>> SearchPharmacies(string query);
     22        Task<IEnumerable<Pharmacy>> GetPharmacies();
     23        Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
    2324        Task<Pharmacy> GetPharmacy(int id);
    2425        //POST
     
    3132        Task UpdateFacility(HealthFacility healthFacilities);
    3233        Task RemoveMedicine(Medicine medicine);
    33         Task RemovePharmacyHead(PharmacyHead pharmacyHead);
     34        Task RemovePharmacyHead(int Id);
    3435        Task UpdatePandemic(Pandemic pandemic);
    3536        Task RemovePharmacy(Pharmacy pharmacy);
Note: See TracChangeset for help on using the changeset viewer.