finalisation des endpoints
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
using FastEndpoints;
|
||||
using PF3.DTO.Staff.Request;
|
||||
using PF3.DTO.Staff.Response;
|
||||
using PyroFetes.DTO.Staff.Request;
|
||||
using PyroFetes.DTO.Staff.Response;
|
||||
|
||||
namespace PF3.Endpoints.Staff;
|
||||
namespace PyroFetes.Endpoints.Staff;
|
||||
|
||||
public class CreateStaffEndpoint(PF3DbContext pf3DbContext):Endpoint<CreateStaffDto, ReadStaffDto>
|
||||
public class CreateStaffEndpoint(PyroFetesDbContext pf3DbContext):Endpoint<CreateStaffDto, ReadStaffDto>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
@@ -14,7 +14,7 @@ public class CreateStaffEndpoint(PF3DbContext pf3DbContext):Endpoint<CreateStaff
|
||||
|
||||
public override async Task HandleAsync(CreateStaffDto req, CancellationToken ct)
|
||||
{
|
||||
var staff = new Models.Staff
|
||||
var staff = new PyroFetes.Models.Staff
|
||||
{
|
||||
FirstName = req.FirstName,
|
||||
LastName = req.LastName,
|
||||
|
||||
Reference in New Issue
Block a user