Added firstName and lastName to the userModel

This commit is contained in:
Dominic Villemure
2024-04-09 23:46:46 -04:00
parent 49a10198e4
commit 6dc85438bf
3 changed files with 8 additions and 2 deletions

View File

@@ -28,10 +28,10 @@ public class CreateUserCommandHandler : IRequestHandler<CreateUserCommand, Guid>
public async Task<Guid> Handle(CreateUserCommand request, CancellationToken cancellationToken)
{
// Dont really need the handler for the create. The get will work like this :
var user = await _userService.FindUserByIdAsync("a4baeb4f-e846-45c6-9be2-6655dd8d1baf");
var user = await _userService.FindUserByIdAsync("072ae7d5-8c4a-4a0f-b250-7d39941125cb");
// var user2 = await _userService.FindUserByEmailAsync("test10@hotmail.com");
var tt = user?.UserName;
var tt = user?.FirstName;
await _context.SaveChangesAsync(cancellationToken);