Last change
on this file since e42f61a was e42f61a, checked in by DimitarSlezenkovski <dslezenkovski@…>, 5 years ago |
Add more services
|
-
Property mode
set to
100644
|
File size:
696 bytes
|
Line | |
---|
1 | using FarmatikoData;
|
---|
2 | using FarmatikoData.Models;
|
---|
3 | using Microsoft.AspNetCore.Cors;
|
---|
4 | using Microsoft.AspNetCore.Mvc;
|
---|
5 | using System.Collections.Generic;
|
---|
6 |
|
---|
7 | namespace 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.