Last change
on this file since 63d885e was c406ae5, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Update Models, Repos, Services and Controllers
|
-
Property mode
set to
100644
|
File size:
721 bytes
|
Line | |
---|
1 | using System.Linq;
|
---|
2 | using System.Threading.Tasks;
|
---|
3 | using FarmatikoData.Models;
|
---|
4 | using FarmatikoServices.FarmatikoServiceInterfaces;
|
---|
5 | using Microsoft.AspNetCore.Mvc;
|
---|
6 |
|
---|
7 | namespace Farmatiko.Controllers
|
---|
8 | {
|
---|
9 | [ApiController]
|
---|
10 | [Route("[controller]/[action]")]
|
---|
11 | public class HealthcareWorkerController : Controller
|
---|
12 | {
|
---|
13 | private IHealthcareWorkerService _healthcareWorkerService;
|
---|
14 | public HealthcareWorkerController(IHealthcareWorkerService healthcareWorkerService)
|
---|
15 | {
|
---|
16 | _healthcareWorkerService = healthcareWorkerService;
|
---|
17 | }
|
---|
18 |
|
---|
19 | [HttpGet]
|
---|
20 | public Task<IQueryable<HealthcareWorkers>> Get()
|
---|
21 | {
|
---|
22 | return _healthcareWorkerService.GetAll();
|
---|
23 | }
|
---|
24 |
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.