/// <inheritdoc /> public async Task <IList <LogDTO> > GetPerItem(int id) { if (await items.AllAsync(s => s.Id != id)) { throw new ArgumentException(); } return(await itemLogs.AsNoTracking().Include(s => s.Item) .Where(s => s.Item.Id == id) .Select(s => LogDTO.FromItemLog(s)) .ToListAsync()); }
/// <inheritdoc /> public async Task <IList <LogDTO> > GetAllItemLogs() { return(await itemLogs.Include(s => s.Item).AsNoTracking().Select(s => LogDTO.FromItemLog(s)).ToListAsync()); }