public async Task <Result <int> > Handle(CreateJobTypeCommand request, CancellationToken cancellationToken) { var id = _authenticatedUser.UserId; var item = _mapper.Map <JobType>(request); await _repository.InsertAsync(item); await _unitOfWork.Commit(cancellationToken); return(Result <int> .Success(item.Id)); }