Exemplo n.º 1
0
        public override async Task <IResult> HandleAsync(CreateRoleCommand command)
        {
            var aggregateRole = AggregateArgument.Mapper.Map <AggregateRole>(command);

            _roleDomainService.CreateRole(aggregateRole);
            await AggregateArgument.UnitOfWork.SaveChangeAsync().ConfigureAwait(false);

            return(Result.Ok());
        }