deximy_L4d2Panel/L4d2PanelBackend/L4d2PanelBackend.API/Services/ILoggerService.cs
using System.Linq.Expressions;

namespace L4d2PanelBackend.API.Services
{
    public interface ILoggerService<T> where T : class
    {
        public Task<Guid> Add(T message);

        public Task<T> Query(Guid id);

        public Task<List<T>> Query(Expression<Func<T, bool>> where_expression);

        public Task<List<T>> Query(Expression<Func<T, bool>> where_expression, Expression<Func<T, object>> order_by_expression, bool is_asc = true);
    }
}
