Files
SkydiveLogs/Back/skydiveLogs-api/Controllers/DropZoneController.cs

56 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using skydiveLogs_api.Business.Interface;
using skydiveLogs_api.DataContract;
namespace skydiveLogs_api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class DropZoneController : ControllerBase
{
public DropZoneController(IDropZoneService dropZoneService)
{
_dropZoneService = dropZoneService;
}
// GET: api/DropZone
[HttpGet]
public IEnumerable<DropZoneResp> Get()
{
return new DropZoneResp[] { "value1", "value2" };
}
// GET: api/DropZone/5
[HttpGet("{id}", Name = "Get")]
public DropZoneResp Get(int id)
{
return "value";
}
// POST: api/DropZone
[HttpPost]
public void Post([FromBody] DropZoneReq value)
{
}
// PUT: api/DropZone/5
[HttpPut("{id}")]
public void Put(int id, [FromBody] DropZoneReq value)
{
}
// DELETE: api/ApiWithActions/5
[HttpDelete("{id}")]
public void Delete(int id)
{
}
private readonly IDropZoneService _dropZoneService;
}
}