semesterWork/domain/Service/PresenceService.cs

26 lines
582 B
C#
Raw Normal View History

2024-12-12 19:47:32 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.DAO;
using data.Repository;
namespace domain.Service
{
class PresenceService
{
private readonly SQLPresenceRepository _presenceRepository;
public PresenceService(SQLPresenceRepository presenceRepository)
{
_presenceRepository = presenceRepository;
}
public List<Attendance> GetAllAttendances()
{
return _presenceRepository.GetAllPresences().ToList();
}
}
}