mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 05:01:15 +03:00
14 lines
353 B
C#
14 lines
353 B
C#
using Ardalis.Specification;
|
|
|
|
namespace PracticeCalendar.Domain.Entities.Specifications
|
|
{
|
|
public class PracticeEventByIdWithAttendees : Specification<PracticeEvent>
|
|
{
|
|
public PracticeEventByIdWithAttendees(int eventId)
|
|
{
|
|
Query.Where(x=>x.Id == eventId)
|
|
.Include(x => x.Attendees);
|
|
}
|
|
}
|
|
}
|