using System; using System.Collections.Generic; using skydiveLogs_api.Business.Interface; using skydiveLogs_api.Model; using skydiveLogs_api.Data.Interface; namespace skydiveLogs_api.Business { public class JumpService : IJumpService { public JumpService(IJumpRepository jumpRepository) { _jumpRepository = jumpRepository; } public void AddNewJump(Jump jump) { _jumpRepository.AddJump(jump); } public void DeleteJumpById(int id) { throw new NotImplementedException(); } public IEnumerable GetAllJumps() { return _jumpRepository.GetAll(); } public Jump GetJumpById(int id) { return _jumpRepository.GetById(id); } public void UpdateJump(int id, Jump jump) { throw new NotImplementedException(); } private readonly IJumpRepository _jumpRepository; } }