How to move create method into worker(sidekiq)?

how to move create method into worker(sidekiq)?

photos_controller.rb

def create
@project = Project.find(params[:project_id])
@photo = @project.photos.build(params[:photo])
@photo.user = current_user
if @photo.save
redirect_to image_upload_project_path(@project)
endend