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 ImageService : IImageService { public ImageService(IImageRepository imageRepository) { _imageRepository = imageRepository; } public void AddNewImage(Image newImage) { _imageRepository.Add(newImage); } public void DeleteImageById(int id) { throw new NotImplementedException(); } public Image GetImageById(int id) { return _imageRepository.GetById(id); } public IEnumerable GetAllImages() { return _imageRepository.GetAll(); } public void UpdateImage(int id, Image Image) { throw new NotImplementedException(); } private readonly IImageRepository _imageRepository; } }