source: Farmatiko/Controllers/HealthcareWorkerController.cs@ de18858

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

Add more services

  • Property mode set to 100644
File size: 764 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5using FarmatikoData.Models;
6using FarmatikoServices.FarmatikoServiceInterfaces;
7using Microsoft.AspNetCore.Mvc;
8
9namespace Farmatiko.Controllers
10{
11 [ApiController]
12 [Route("[controller]/[action]")]
13 public class HealthcareWorkerController : Controller
14 {
15 private IHealthcareWorkerService _healthcareWorkerService;
16 public HealthcareWorkerController(IHealthcareWorkerService healthcareWorkerService)
17 {
18 _healthcareWorkerService = healthcareWorkerService;
19 }
20
21 [HttpGet]
22 public IEnumerable<HealthcareWorkers> Get()
23 {
24 return _healthcareWorkerService.GetAll();
25 }
26
27 }
28}
Note: See TracBrowser for help on using the repository browser.