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
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Threading.Tasks;
|
---|
5 | using FarmatikoData.Models;
|
---|
6 | using FarmatikoServices.FarmatikoServiceInterfaces;
|
---|
7 | using Microsoft.AspNetCore.Mvc;
|
---|
8 |
|
---|
9 | namespace 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.