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

Change methods & add error controller

Location:
FarmatikoData/FarmatikoRepoInterfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoRepoInterfaces/IAdminRepo.cs

    r1454207 r6f203af  
    1010    public interface IAdminRepo
    1111    {
    12         Task<IQueryable<RequestPharmacyHead>> GetClaimingRequests();
    13         Task<IQueryable<PharmacyHead>> GetPharmacyHeads();
    14         Task RemoveClaimRequest(RequestPharmacyHead req);
     12        Task<IEnumerable<RequestPharmacyHead>> GetClaimingRequests();
     13        Task<IEnumerable<PharmacyHead>> GetPharmacyHeads();
     14        void RemoveClaimRequest(RequestPharmacyHead req);
    1515    }
    1616}
  • FarmatikoData/FarmatikoRepoInterfaces/IPHRepo.cs

    r1454207 r6f203af  
    1111    {
    1212        Task ClaimPharmacy(RequestPharmacyHead pharmacy);
    13         Task<PharmacyHead> GetPharmacyHead(PharmacyHead pharmacyHead);
    14         Task<IQueryable<PharmacyHead>> GetPharmacyHeadInfo();
     13        Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo();
    1514        Task UpdatePharmacyHead(PharmacyHead pharmacyHead);
     15        Task<PharmacyHead> GetPharmacyHeadByIdAsync(int id);
     16        Task Add(PharmacyHead pharmacyHead);
     17        Task Remove(PharmacyHead phead);
     18        Task RemoveClaimingRequest(int id);
    1619    }
    1720}
  • 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.