This commit is contained in:
MeysamMoghaddam
2025-10-12 23:38:55 +03:30
parent a3845060a2
commit f77e1957ee
2 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
using CMSMicroservice.Protobuf.Protos.User;
namespace FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser; namespace FrontOffice.BFF.Application.UserCQ.Commands.UpdateUser;
public class UpdateUserCommandHandler : IRequestHandler<UpdateUserCommand, Unit> public class UpdateUserCommandHandler : IRequestHandler<UpdateUserCommand, Unit>
{ {
@@ -10,7 +12,7 @@ public class UpdateUserCommandHandler : IRequestHandler<UpdateUserCommand, Unit>
public async Task<Unit> Handle(UpdateUserCommand request, CancellationToken cancellationToken) public async Task<Unit> Handle(UpdateUserCommand request, CancellationToken cancellationToken)
{ {
//TODO: Implement your business logic await _context.User.UpdateUserAsync(request: request.Adapt<UpdateUserRequest>(), cancellationToken: cancellationToken);
return new Unit(); return Unit.Value;
} }
} }

View File

@@ -6,7 +6,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.114" /> <PackageReference Include="Foursat.CMSMicroservice.Protobuf" Version="0.0.116" />
<PackageReference Include="Google.Protobuf" Version="3.23.3" /> <PackageReference Include="Google.Protobuf" Version="3.23.3" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.54.0" /> <PackageReference Include="Grpc.Net.ClientFactory" Version="2.54.0" />
<PackageReference Include="Grpc.Tools" Version="2.72.0"> <PackageReference Include="Grpc.Tools" Version="2.72.0">