Add drafts for Interface business and repository + DataContract presentation
This commit is contained in:
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
@@ -11,6 +13,11 @@ namespace skydiveLogs_api.Controllers
|
||||
[ApiController]
|
||||
public class AircraftController : ControllerBase
|
||||
{
|
||||
public AircraftController(IAircraftService aircraftService)
|
||||
{
|
||||
_aircraftService = aircraftService;
|
||||
}
|
||||
|
||||
// GET: api/Aircraft
|
||||
[HttpGet]
|
||||
public IEnumerable<AircraftResp> Get()
|
||||
@@ -42,5 +49,7 @@ namespace skydiveLogs_api.Controllers
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
|
||||
private readonly IAircraftService _aircraftService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ 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
|
||||
@@ -12,6 +13,11 @@ namespace skydiveLogs_api.Controllers
|
||||
[ApiController]
|
||||
public class DropZoneController : ControllerBase
|
||||
{
|
||||
public DropZoneController(IDropZoneService dropZoneService)
|
||||
{
|
||||
_dropZoneService = dropZoneService;
|
||||
}
|
||||
|
||||
// GET: api/DropZone
|
||||
[HttpGet]
|
||||
public IEnumerable<DropZoneResp> Get()
|
||||
@@ -43,5 +49,7 @@ namespace skydiveLogs_api.Controllers
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
|
||||
private readonly IDropZoneService _dropZoneService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
@@ -11,6 +13,11 @@ namespace skydiveLogs_api.Controllers
|
||||
[ApiController]
|
||||
public class JumpController : ControllerBase
|
||||
{
|
||||
public JumpController(IJumpService jumpService)
|
||||
{
|
||||
_jumpService = jumpService;
|
||||
}
|
||||
|
||||
// GET: api/Jump
|
||||
[HttpGet]
|
||||
public IEnumerable<JumpResp> Get()
|
||||
@@ -42,5 +49,7 @@ namespace skydiveLogs_api.Controllers
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
|
||||
private readonly IJumpService _jumpService;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ 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
|
||||
{
|
||||
@@ -11,6 +13,11 @@ namespace skydiveLogs_api.Controllers
|
||||
[ApiController]
|
||||
public class JumpTypeController : ControllerBase
|
||||
{
|
||||
public JumpTypeController(IJumpTypeService jumpTypeService)
|
||||
{
|
||||
_jumpTypeService = jumpTypeService;
|
||||
}
|
||||
|
||||
// GET: api/JumpType
|
||||
[HttpGet]
|
||||
public IEnumerable<JumpTypeResp> Get()
|
||||
@@ -42,5 +49,7 @@ namespace skydiveLogs_api.Controllers
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
|
||||
private readonly IJumpTypeService _jumpTypeService;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user