source: Farmatiko/Controllers/PandemicController.cs@ c406ae5

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

Update Models, Repos, Services and Controllers

  • Property mode set to 100644
File size: 638 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 PandemicController : Controller
12 {
13 private IPandemicService _pandemicService;
14 public PandemicController(IPandemicService pandemicService)
15 {
16 _pandemicService = pandemicService;
17 }
18 [HttpGet]
19 public Task<IQueryable<Pandemic>> Get()
20 {
21 return _pandemicService.GetAll();
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.