source: Farmatiko/Controllers/HealthcareWorkerController.cs@ c406ae5

Last change on this file since c406ae5 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 
1using System.Linq;
2using System.Threading.Tasks;
3using FarmatikoData.Models;
4using FarmatikoServices.FarmatikoServiceInterfaces;
5using Microsoft.AspNetCore.Mvc;
6
7namespace 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.