source: Farmatiko/Controllers/PharmacyHeadController.cs@ 4e72684

Last change on this file since 4e72684 was 4e72684, checked in by DimitarSlezenkovski <dslezenkovski@…>, 2 years ago

Add services

  • Property mode set to 100644
File size: 792 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5using FarmatikoData.FarmatikoRepoInterfaces;
6using FarmatikoData.Models;
7using Microsoft.AspNetCore.Mvc;
8
9namespace Farmatiko.Controllers
10{
11 [ApiController]
12 [Route("[controller]/[action]")]
13 public class PharmacyHeadController : Controller
14 {
15 private IPharmacyHeadRepository _pharmacyHeadRepository;
16 public PharmacyHeadController(IPharmacyHeadRepository pharmacyHeadRepository)
17 {
18 _pharmacyHeadRepository = pharmacyHeadRepository;
19 }
20 [HttpGet]
21 public IQueryable<PharmacyHead> GetAllPharmacies(string NameOfPharmacy)
22 {
23 return _pharmacyHeadRepository.GetAllPharmacies(NameOfPharmacy);
24 }
25 }
26}
Note: See TracBrowser for help on using the repository browser.