using WyvernInventory.Core.Interfaces.Repos; using WyvernInventory.Core.Interfaces.Services; using WyvernInventory.Core.Models; namespace WyvernInventory.Infrastructure.Services; public class GenericInventoryItemService(IDbObjectRepo dbRepo) : IDataObjectService { private readonly IDbObjectRepo _dbRepo = dbRepo; public async Task> GetAsync(Predicate? filter = null) => await _dbRepo.GetAsync(filter); public async Task<(int created, int updated)> UpsertAsync(List items) => await _dbRepo.UpsertAsync(items); public async Task DeleteAsync(List items) => await _dbRepo.DeleteAsync(items); }