Adding Comunication

This commit is contained in:
2025-10-16 17:05:52 +02:00
parent 5cbbfa1434
commit df622c9232
10 changed files with 109 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ using FastEndpoints;
namespace PyroFetes.Endpoints.ExperienceLevel;
public class GetExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint <GetExperienceLevelRequest, GetExperienceLevelDto>
public class GetExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint <GetExperienceLevelDTO, GetExperienceLevelDto>
{
public override void Configure()
{
@@ -13,7 +13,7 @@ public class GetExperienceLevelEndpoint(PyroFetesDbContext pyroFetesDbContext) :
AllowAnonymous();
}
public override async Task HandleAsync(GetExperienceLevelRequest req, CancellationToken ct)
public override async Task HandleAsync(GetExperienceLevelDTO req, CancellationToken ct)
{
Models.ExperienceLevel? databaseExperienceLevel = await pyroFetesDbContext.ExperienceLevels.SingleOrDefaultAsync(x => x.Id == req.Id, cancellationToken: ct);