using System.Linq; using FarmatikoData.Models; using FarmatikoServices.FarmatikoServiceInterfaces; using Microsoft.AspNetCore.Mvc; namespace Farmatiko.Controllers { [ApiController] [Route("[controller]/[action]")] public class PandemicController : Controller { private IPandemicService _pandemicService; public PandemicController(IPandemicService pandemicService) { _pandemicService = pandemicService; } [HttpGet] public IQueryable Get() { return _pandemicService.GetAll(); } } }