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

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

Add more services

  • Property mode set to 100644
File size: 696 bytes
RevLine 
[d2e69be]1using FarmatikoData;
2using FarmatikoData.Models;
[e42f61a]3using Microsoft.AspNetCore.Cors;
[d2e69be]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.