Files
moadiran/Back/Services/servNotification.cs

21 lines
552 B
C#
Raw Normal View History

2024-04-17 15:49:34 +03:30
using Back.Data.Contracts;
using Back.Data.Models;
using Microsoft.EntityFrameworkCore;
namespace Back.Services
{
public class servNotification
{
private readonly IAsyncRepository<Notification> _NotificationRepo;
public servNotification(IAsyncRepository<Notification> NotificationRepo)
{
_NotificationRepo = NotificationRepo;
}
public async Task<List<Notification>> GetNotifications()
{
return await _NotificationRepo.Get(w=>w.Status).ToListAsync();
}
}
}