How to find the status of Batch

Hi,

I am very new in Hangfire, I am using hangfire pro. for creating the batch, ones all the jobs done then I need to update the status in my DB.

Please check my code,

       var batchId = BatchJob.StartNew(x =>
        {
            foreach (var item in patientImport.PatientRecords)
            {
                x.Enqueue(() => processPatient(item, patientImport.ImportThreadId));
            }
        });

        BatchJob.AwaitBatch(batchId, x =>
        {
            x.Enqueue(() => MarkImportTaskFinished(patientImport.ImportThreadId, ImportStatus.Success.ToString()));
        });

I have given hard coded status “ImportStatus.Success.ToString()”.

Please let me know how I can find the real status.