Ignore:
Timestamp:
07/31/20 10:15:02 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
d8fafb8
Parents:
4e72684
Message:

Update & add service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Controllers/HealthFacilitiesController.cs

    r4e72684 ra55ef91  
    11using FarmatikoData;
    22using FarmatikoData.Models;
    3 using Microsoft.AspNetCore.Cors;
     3using FarmatikoServices.FarmatikoServiceInterfaces;
    44using Microsoft.AspNetCore.Mvc;
     5using Microsoft.Extensions.Logging;
     6using Newtonsoft.Json;
     7using Newtonsoft.Json.Linq;
     8using System;
    59using System.Collections.Generic;
     10using System.Linq;
     11using System.Net;
     12using System.Threading.Tasks;
    613
    714namespace Farmatiko.Controllers
     
    1219    {
    1320        private IHealthFacilityService _healthFacilitiesService;
    14         public HealthFacilitiesController(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)
    1525        {
    1626            _healthFacilitiesService = healthFacilitiesService;
     27            _processJSONService = processJSONService;
    1728        }
    1829        [HttpGet]
    19         public IEnumerable<HealthFacilities> Get()
     30        public IQueryable<HealthFacilities> Get()
    2031        {
    2132            return _healthFacilitiesService.GetAll();
    2233        }
     34       /* public void Index()
     35       
     36        {
     37            _processJSONService.GetProcessedHealthFacilitiesFromJSON();
     38        }*/
    2339    }
    2440}
Note: See TracChangeset for help on using the changeset viewer.