2021-02-09 16:28:13 +01:00
|
|
|
|
using hanyadikhetvan.DTO;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2021-02-08 20:48:10 +01:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace hanyadikhetvan.Controllers
|
|
|
|
|
{
|
|
|
|
|
[ApiController]
|
|
|
|
|
[Route("[controller]")]
|
|
|
|
|
public class HanyadikHetVanController : ControllerBase
|
|
|
|
|
{
|
|
|
|
|
|
2021-02-09 16:28:13 +01:00
|
|
|
|
private readonly HanyadikHetVanService _service;
|
|
|
|
|
|
|
|
|
|
public HanyadikHetVanController(HanyadikHetVanService service)
|
2021-02-08 20:48:10 +01:00
|
|
|
|
{
|
2021-02-09 16:28:13 +01:00
|
|
|
|
_service = service;
|
2021-02-08 20:48:10 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
2021-02-09 16:28:13 +01:00
|
|
|
|
public HanyadikHetVanDTO Get()
|
2021-02-08 20:48:10 +01:00
|
|
|
|
{
|
2021-02-09 16:28:13 +01:00
|
|
|
|
return _service.HanyadikHetVan();
|
2021-02-08 20:48:10 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|