namespace Repository; public interface IPushSubscriptionRepository : IBaseRepository { Task GetByEndpointAsync(string endpoint); } public class PushSubscriptionRepository(IFreeSql freeSql) : BaseRepository(freeSql), IPushSubscriptionRepository { public async Task GetByEndpointAsync(string endpoint) { return await FreeSql.Select() .Where(x => x.Endpoint == endpoint) .FirstAsync(); } }