source: Farmatiko/Controllers/HealthcareWorkerController.cs@ e42f61a

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

Add more services

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