Restructured query repositries to move ef logic from handlers
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
using BrightGlimmer.Domain;
|
||||
using MediatR;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BrightGlimmer.Services.Queries
|
||||
{
|
||||
public class GetAllStudentsQuery : IRequest<IEnumerable<Student>>
|
||||
{
|
||||
}
|
||||
}
|
||||
16
BrightGlimmer.Service/Queries/GetStudentQuery.cs
Normal file
16
BrightGlimmer.Service/Queries/GetStudentQuery.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using BrightGlimmer.Domain;
|
||||
using MediatR;
|
||||
using System;
|
||||
|
||||
namespace BrightGlimmer.Service.Queries
|
||||
{
|
||||
public class GetStudentQuery : IRequest<Student>
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public GetStudentQuery(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
BrightGlimmer.Service/Queries/GetStudentsQuery.cs
Normal file
10
BrightGlimmer.Service/Queries/GetStudentsQuery.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using BrightGlimmer.Domain;
|
||||
using MediatR;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BrightGlimmer.Service.Queries
|
||||
{
|
||||
public class GetStudentsQuery : IRequest<IEnumerable<Student>>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user