Removed todos and added User endpoint combined with register. Id changed to guid
This commit is contained in:
@@ -3,7 +3,7 @@ using Hutopy.Domain.Entities;
|
||||
|
||||
namespace Hutopy.Application.FutureCreators.Commands;
|
||||
|
||||
public abstract record CreateFutureCreatorCommand : IRequest<int>
|
||||
public record CreateFutureCreatorCommand : IRequest<Guid>
|
||||
{
|
||||
public required string FirstName { get; init; }
|
||||
public required string LastName { get; init; }
|
||||
@@ -15,9 +15,9 @@ public abstract record CreateFutureCreatorCommand : IRequest<int>
|
||||
|
||||
public class CreateFutureCreatorCommandHandler(
|
||||
IApplicationDbContext context)
|
||||
: IRequestHandler<CreateFutureCreatorCommand, int>
|
||||
: IRequestHandler<CreateFutureCreatorCommand, Guid>
|
||||
{
|
||||
public async Task<int> Handle(CreateFutureCreatorCommand request, CancellationToken cancellationToken)
|
||||
public async Task<Guid> Handle(CreateFutureCreatorCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
var entity = new FutureCreator
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user