Implementation of repositories and return infos
This commit is contained in:
@@ -1,12 +1,44 @@
|
||||
using skydiveLogs_api.Business.Interface;
|
||||
using skydiveLogs_api.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using skydiveLogs_api.Data.Interface;
|
||||
|
||||
namespace skydiveLogs_api.Business
|
||||
{
|
||||
public class AircraftService : IAircraftService
|
||||
{
|
||||
public AircraftService(IAircraftRepository aircraftRepository)
|
||||
{
|
||||
_aircraftRepository = aircraftRepository;
|
||||
}
|
||||
|
||||
public void AddNewAircraft(Aircraft aircraft)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void DeleteAircraftById(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Aircraft GetAircraftById(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<Aircraft> GetAllAircrafts()
|
||||
{
|
||||
return _aircraftRepository.GetAllAircrafts();
|
||||
}
|
||||
|
||||
public void UpdateAircraft(int id, Aircraft aircraft)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private readonly IAircraftRepository _aircraftRepository;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user