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