source: Farmatiko/Controllers/HealthFacilitiesController.cs@ e42f61a

Last change on this file since e42f61a was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 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.