Ignore:
Timestamp:
07/29/20 20:02:58 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
a55ef91
Parents:
de18858
Message:

Add services

Location:
FarmatikoData/FarmatikoRepoInterfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoRepoInterfaces/IMedicineListRepository.cs

    rde18858 r4e72684  
    11using FarmatikoData.Models;
    2 using System;
    32using System.Collections.Generic;
    4 using System.Text;
    53
    64namespace FarmatikoData.FarmatikoRepo
     
    108        void Add(MedicineList medicineList);
    119        void Remove(MedicineList medicineList);
    12         ICollection<MedicineList> GetAll();
     10        IEnumerable<MedicineList> GetAll();
    1311        //Not needed, maybe later
    1412        /*MedicineList CheckMedicine(MedicineList medicineList, bool HasMedicine);
     
    1614        ICollection<MedicineList> GetByName(string Name);
    1715        ICollection<MedicineList> GetByManufacturer(string Manufacturer);
    18         void SetHasMedicine(MedicineList medicineList, bool HasMedicine);
     16        bool SetHasMedicine(MedicineList medicineList, bool HasMedicine);
    1917    }
    2018}
  • FarmatikoData/FarmatikoRepoInterfaces/IPharmacyHeadRepository.cs

    rde18858 r4e72684  
    22using System;
    33using System.Collections.Generic;
     4using System.Linq;
    45using System.Text;
    56
     
    1011        void Add(PharmacyHead pharmacyHead);
    1112        void Remove(PharmacyHead pharmacyHead, string Name);
    12         ICollection<PharmacyHead> GetAllPharmacies(string NameOfPharmacyHead);
     13        IQueryable<PharmacyHead> GetAllPharmacies(string NameOfPharmacyHead);
    1314        //Not actually needed
    14         IEnumerable<PharmacyHead> GetPharmacyByName(string Name);
     15        IQueryable<PharmacyHead> GetPharmacyByName(string Name);
     16        IQueryable<MedicineList> GetPharmacyMedicines(string NameOfPharmacy);
    1517    }
    1618}
  • FarmatikoData/FarmatikoRepoInterfaces/IPharmacyRepository.cs

    rde18858 r4e72684  
    1010        void Add(Pharmacy pharmacy);
    1111        ICollection<Pharmacy> GetPharmacies();
     12        IEnumerable<Pharmacy> GetAll();
    1213        void Remove(Pharmacy pharmacy);
    1314        void UpdatePharmacy(Pharmacy pharmacy, string Name);
Note: See TracChangeset for help on using the changeset viewer.