table improvements (#272)

* log viewer improvements

* playout detail table improvements

* schedule items table improvements

* remove schedule items pager
This commit is contained in:
Jason Dove
2021-06-15 16:10:24 -05:00
committed by GitHub
parent b580125e86
commit cebab33d79
15 changed files with 199 additions and 66 deletions
@@ -1,19 +0,0 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ErsatzTV.Core.Domain;
using ErsatzTV.Core.Interfaces.Repositories;
using Microsoft.EntityFrameworkCore;
namespace ErsatzTV.Infrastructure.Data.Repositories
{
public class LogRepository : ILogRepository
{
private readonly LogContext _logContext;
public LogRepository(LogContext logContext) => _logContext = logContext;
public Task<List<LogEntry>> GetRecentLogEntries() =>
_logContext.LogEntries.OrderByDescending(e => e.Id).Take(100).ToListAsync();
}
}