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

Location:
FarmatikoServices/FarmatikoServiceInterfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoServices/FarmatikoServiceInterfaces/IAdminService.cs

    r1454207 r6f203af  
    1010    public interface IAdminService
    1111    {
    12         Task<IQueryable<PharmacyHead>> GetPharmacyHeads();
    13         Task<IQueryable<RequestPharmacyHead>> GetCalimingRequests();
    14         Task RejectRequest(RequestPharmacyHead req);
     12        Task<IEnumerable<PharmacyHead>> GetPharmacyHeads();
     13        Task<IEnumerable<RequestPharmacyHead>> GetClaimingRequests();
     14        bool RejectRequest(RequestPharmacyHead req);
    1515    }
    1616}
  • FarmatikoServices/FarmatikoServiceInterfaces/IPHService.cs

    r1454207 r6f203af  
    1010    public interface IPHService
    1111    {
    12         Task<IQueryable<PharmacyHead>> GetPharmacyHeadInfo(string Token);
     12        Task<IEnumerable<PharmacyHead>> GetPharmacyHeadInfo(string Token);
    1313        Task UpdatePharmacyHead(PharmacyHead pharmacyHead);
    1414        Task<int> Login(PharmacyHead pharmacyHead);
    15         Task ClaimPharmacy(RequestPharmacyHead pharmacy);
     15        Task<bool> ClaimPharmacy(RequestPharmacyHead pharmacy);
     16        Task<PharmacyHead> GetPharmacyHeadByIdAsync(int id);
     17        Task<bool> Add(PharmacyHead pharmacyHead);
     18        Task<bool> Remove(int id);
     19        Task<bool> RemoveClaimingRequest(int id);
    1620    }
    1721}
  • 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.