Ignore:
Timestamp:
08/05/20 18:39:58 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
63d885e
Parents:
a6bbad1
Message:

Update Models, Repos, Services and Controllers

Location:
FarmatikoServices/FarmatikoServiceInterfaces
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoServices/FarmatikoServiceInterfaces/IHealthFacilityService.cs

    ra6bbad1 rc406ae5  
    11using FarmatikoData.Models;
    22using System.Linq;
     3using System.Threading.Tasks;
    34
    45namespace FarmatikoData
     
    67    public interface IHealthFacilityService
    78    {
    8         IQueryable<HealthFacilities> GetAll();
     9        Task<IQueryable<HealthFacilities>> GetAll();
    910        void Add(HealthFacilities healthFacility);
    1011        void Remove(HealthFacilities healthFacility);
  • FarmatikoServices/FarmatikoServiceInterfaces/IHealthcareWorkerService.cs

    ra6bbad1 rc406ae5  
    11using FarmatikoData.Models;
    22using System.Linq;
     3using System.Threading.Tasks;
    34
    45namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    67    public interface IHealthcareWorkerService
    78    {
    8         IQueryable<HealthcareWorkers> GetAll();
     9        Task<IQueryable<HealthcareWorkers>> GetAll();
    910        void Add(HealthcareWorkers healthcareWorker);
    1011        void Remove(HealthcareWorkers healthcareWorker);
  • FarmatikoServices/FarmatikoServiceInterfaces/IMedicineListService.cs

    ra6bbad1 rc406ae5  
    22using System.Collections.Generic;
    33using System.Linq;
     4using System.Threading.Tasks;
    45
    56namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    78    public interface IMedicineListService
    89    {
    9         IQueryable<MedicineList> GetAll();
     10        Task<IQueryable<MedicineList>> GetAll();
    1011        //SetHasMedicine(MedicineList medicineList, bool HasMedicine);
    11         ICollection<MedicineList> GetByName(string Name);
    12         ICollection<MedicineList> GetByManufacturer(string Manufacturer);
     12        Task<ICollection<MedicineList>> GetByName(string Name);
     13        Task<ICollection<MedicineList>> GetByManufacturer(string Manufacturer);
    1314        void Add(MedicineList medicineList);
    1415        void Remove(MedicineList medicineList);
  • FarmatikoServices/FarmatikoServiceInterfaces/IMedicineService.cs

    ra6bbad1 rc406ae5  
    11using FarmatikoData.Models;
    22using System.Linq;
     3using System.Threading.Tasks;
    34
    45namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    67    public interface IMedicineService
    78    {
    8         IQueryable<Medicine> GetAll();
     9        Task<IQueryable<Medicine>> GetAll();
    910        void Add(Medicine medicine);
    10         void Remove(string Medicine);
    11         IQueryable<Medicine> GetByName(string Name);
    12         IQueryable<Medicine> GetByManufacturer(string Manufacturer);
     11        void Remove(Medicine Medicine);
     12        Task<IQueryable<Medicine>> GetByName(string Name);
     13        Task<IQueryable<Medicine>> GetByManufacturer(string Manufacturer);
    1314    }
    1415}
  • FarmatikoServices/FarmatikoServiceInterfaces/IPandemicService.cs

    ra6bbad1 rc406ae5  
    11using FarmatikoData.Models;
    22using System.Linq;
     3using System.Threading.Tasks;
    34
    45namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    78    {
    89        void Add(Pandemic pandemic);
    9         IQueryable<Pandemic> GetAll();
     10        Task<IQueryable<Pandemic>> GetAll();
    1011        void Remove(Pandemic pandemic);
    1112    }
  • FarmatikoServices/FarmatikoServiceInterfaces/IPharmacyHeadService.cs

    ra6bbad1 rc406ae5  
    11using FarmatikoData.Models;
    22using System.Linq;
     3using System.Threading.Tasks;
    34
    45namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    78    {
    89        void Add(PharmacyHead pharmacyHead);
    9         void Remove(PharmacyHead pharmacyHead, string Name);
    10         IQueryable<PharmacyHead> GetAllPharmacies(string NameOfPharmacyHead);
     10        void Remove(PharmacyHead pharmacyHead);
     11        Task<IQueryable<PharmacyHead>> GetAllPharmacies(string NameOfPharmacyHead);
    1112        //Not actually needed
    12         IQueryable<PharmacyHead> GetPharmacyByName(string Name);
    13         IQueryable<MedicineList> GetPharmacyMedicines(string NameOfPharmacy);
     13        Task<IQueryable<PharmacyHead>> GetPharmacyByName(string Name);
     14        Task<IQueryable<MedicineList>> GetPharmacyMedicines(string NameOfPharmacy);
    1415    }
    1516}
  • FarmatikoServices/FarmatikoServiceInterfaces/IPharmacyService.cs

    ra6bbad1 rc406ae5  
    22using System.Collections.Generic;
    33using System.Linq;
     4using System.Threading.Tasks;
    45
    56namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    89    {
    910        void Add(Pharmacy pharmacy);
    10         ICollection<Pharmacy> GetPharmacies();
    11         IQueryable<Pharmacy> GetAll();
     11        Task<ICollection<Pharmacy>> GetPharmacies();
     12        Task<IQueryable<Pharmacy>> GetAll();
    1213        void Remove(Pharmacy pharmacy);
    13         void UpdatePharmacy(Pharmacy pharmacy, string Name);
     14        void UpdatePharmacy(Pharmacy pharmacy);
    1415    }
    1516}
  • FarmatikoServices/FarmatikoServiceInterfaces/IProcessJSONService.cs

    ra6bbad1 rc406ae5  
    33using System.Collections.Generic;
    44using System.Text;
     5using System.Threading.Tasks;
    56
    67namespace FarmatikoServices.FarmatikoServiceInterfaces
     
    89    public interface IProcessJSONService
    910    {
    10         List<HealthFacilities> GetProcessedHealthFacilitiesFromJSON();
     11        Task<HashSet<HealthFacilities>> GetProcessedHealthFacilitiesFromJSON();
     12        Task<HashSet<Pandemic>> GetProcessedPandemicsFromJSONApi();
     13        Task<HashSet<HealthcareWorkers>> GetProcessedHealthcareWorkersFromJSON();
     14        Task<HashSet<Medicine>> GetProcessedMedicinesFromJSON();
    1115    }
    1216}
Note: See TracChangeset for help on using the changeset viewer.