Ejemplo n.º 1
0
        public async Task <bool> Handle(DeleteRolCommand request, CancellationToken cancellationToken)
        {
            var result = await _service.DeleteRols(request.Ids);

            if (!result)
            {
                throw new ErrorException("03", $"Error tratando de eliminar roles");
            }

            return(result);
        }