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
  • FarmatikoData/FarmatikoRepoInterfaces/IRepository.cs

    r1454207 r6f203af  
    1111    {
    1212        //GET
    13         Task<IQueryable<HealthcareWorker>> GetAllWorkers();
    14         Task<IQueryable<HealthFacility>> GetFacilities();
     13        Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
     14        Task<IEnumerable<HealthFacility>> GetFacilities();
    1515        Task<HealthFacility> GetFacility(int Id);
    1616        Task<Medicine> GetMedicine(int Id);
    17         Task<IQueryable<Medicine>> GetMedicines();
     17        Task<IEnumerable<Medicine>> GetMedicines();
    1818        Task<Pandemic> GetPandemic();
    19         Task<IQueryable<Pharmacy>> GetPharmacies();
     19        Task<IEnumerable<Pharmacy>> GetPharmacies();
    2020        Task<Pharmacy> GetPharmacy(int id);
    2121        Task<HealthcareWorker> GetWorker(int id);
    22         Task<IQueryable<HealthFacility>> SearchFacilities(string query);
    23         Task<IQueryable<Medicine>> SearchMedicines(string query);
    24         Task<IQueryable<Pharmacy>> SearchPharmacies(string query);
    25         Task<IQueryable<HealthcareWorker>> SearchWorkers(string query);
     22        Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
     23        Task<IEnumerable<Medicine>> SearchMedicines(string query);
     24        Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
     25        Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
    2626        Task<HealthFacility> GetFacilityJSON(string healthFacility);
    2727
     
    4040        Task UpadatePharmacy(Pharmacy pharmacy);
    4141        Task UpdateMedicine(Medicine medicine);
    42         Task RemovePharmacyHead(PharmacyHead pharmacyHead);
     42        Task RemovePharmacyHead(int Id);
    4343    }
    4444}
Note: See TracChangeset for help on using the changeset viewer.