semesterWork/domain/Service/PresenceService.cs
2024-12-12 22:47:32 +03:00

26 lines
582 B
C#

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();
}
}
}