Last change
on this file since a55ef91 was a55ef91, checked in by DimitarSlezenkovski <dslezenkovski@…>, 5 years ago |
Update & add service
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | using FarmatikoData;
|
---|
2 | using FarmatikoData.Models;
|
---|
3 | using FarmatikoServices.FarmatikoServiceInterfaces;
|
---|
4 | using Microsoft.AspNetCore.Mvc;
|
---|
5 | using Microsoft.Extensions.Logging;
|
---|
6 | using Newtonsoft.Json;
|
---|
7 | using Newtonsoft.Json.Linq;
|
---|
8 | using System;
|
---|
9 | using System.Collections.Generic;
|
---|
10 | using System.Linq;
|
---|
11 | using System.Net;
|
---|
12 | using System.Threading.Tasks;
|
---|
13 |
|
---|
14 | namespace Farmatiko.Controllers
|
---|
15 | {
|
---|
16 | [ApiController]
|
---|
17 | [Route("[controller]/[action]")]
|
---|
18 | public class HealthFacilitiesController : Controller
|
---|
19 | {
|
---|
20 | private IHealthFacilityService _healthFacilitiesService;
|
---|
21 | private IProcessJSONService _processJSONService;
|
---|
22 | /*private IProcessJSONService _processJSONService;*/
|
---|
23 | private string Path = @"C:\Users\dslez\Desktop\ustanovi.json";
|
---|
24 | public HealthFacilitiesController(IHealthFacilityService healthFacilitiesService, IProcessJSONService processJSONService)
|
---|
25 | {
|
---|
26 | _healthFacilitiesService = healthFacilitiesService;
|
---|
27 | _processJSONService = processJSONService;
|
---|
28 | }
|
---|
29 | [HttpGet]
|
---|
30 | public IQueryable<HealthFacilities> Get()
|
---|
31 | {
|
---|
32 | return _healthFacilitiesService.GetAll();
|
---|
33 | }
|
---|
34 | /* public void Index()
|
---|
35 |
|
---|
36 | {
|
---|
37 | _processJSONService.GetProcessedHealthFacilitiesFromJSON();
|
---|
38 | }*/
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.