source: Farmatiko/Controllers/HealthFacilitiesController.cs@ de18858

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

Add more services

  • Property mode set to 100644
File size: 696 bytes
Line 
1using FarmatikoData;
2using FarmatikoData.Models;
3using Microsoft.AspNetCore.Cors;
4using Microsoft.AspNetCore.Mvc;
5using System.Collections.Generic;
6
7namespace Farmatiko.Controllers
8{
9 [ApiController]
10 [Route("[controller]/[action]")]
11 public class HealthFacilitiesController : Controller
12 {
13 private IHealthFacilityService _healthFacilitiesService;
14 public HealthFacilitiesController(IHealthFacilityService healthFacilitiesService)
15 {
16 _healthFacilitiesService = healthFacilitiesService;
17 }
18 [HttpGet]
19 public IEnumerable<HealthFacilities> Get()
20 {
21 return _healthFacilitiesService.GetAll();
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.