Ignore:
Timestamp:
07/31/20 10:15:02 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
d8fafb8
Parents:
4e72684
Message:

Update & add service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/PharmacyHeadController.cs

    r4e72684 ra55ef91  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Threading.Tasks;
     1using System.Linq;
    52using FarmatikoData.FarmatikoRepoInterfaces;
    63using FarmatikoData.Models;
     
    2320            return _pharmacyHeadRepository.GetAllPharmacies(NameOfPharmacy);
    2421        }
     22        [HttpGet]
     23        public IQueryable<PharmacyHead> GetPharmacyByName(string Name)
     24        {
     25            return _pharmacyHeadRepository.GetPharmacyByName(Name);
     26        }
     27        [HttpGet]
     28        public IQueryable<MedicineList> GetPharmacyMedicines(string NameOfPharmacy)
     29        {
     30            return _pharmacyHeadRepository.GetPharmacyMedicines(NameOfPharmacy);
     31        }
     32        [HttpPost]
     33        public void Add(PharmacyHead pharmacyHead)
     34        {
     35            _pharmacyHeadRepository.Add(pharmacyHead);
     36        }
     37        [HttpPost]
     38        public void Remove(PharmacyHead pharmacyHead, string Name)
     39        {
     40            _pharmacyHeadRepository.Remove(pharmacyHead, Name);
     41        }
    2542    }
    2643}
Note: See TracChangeset for help on using the changeset viewer.