Files
Prog4_Beadando/WD7UVN_HFT_2023241.Endpoint/Controllers/WhoMaintainsServiceController.cs

26 lines
634 B
C#
Raw Normal View History

2023-12-10 17:20:48 +01:00
using Microsoft.AspNetCore.Mvc;
using WD7UVN_HFT_2023241.Logic;
using System.Linq;
using WD7UVN_HFT_2023241.Models;
namespace WD7UVN_HFT_2023241.Endpoint
{
[ApiController]
[Route("api/WhoMaintainsService")]
public class WhoMaintainsServiceController : ControllerBase
{
public ILogicServices LogicServices { get; set; }
public WhoMaintainsServiceController(ILogicServices LogicServices)
{
this.LogicServices = LogicServices;
}
[HttpGet("{id}")]
public IQueryable<Customer> WhoUsesService([FromQuery] int id)
{
return LogicServices.WhoUsesService(id);
}
}
}