using Back.Data.Contracts; using Back.Data.Models; using Microsoft.EntityFrameworkCore; namespace Back.Services { public class servNotification { private readonly IAsyncRepository _NotificationRepo; public servNotification(IAsyncRepository NotificationRepo) { _NotificationRepo = NotificationRepo; } public async Task> GetNotifications() { return await _NotificationRepo.Get(w=>w.Status).ToListAsync(); } } }