void SetErrorMessage() { UploadErrorLogVMDC errorRecord = new UploadErrorLogVMDC(); errorRecord.UploadErrorLogItem = new UploadErrorLogDC(); errorRecord.UploadErrorLogItem.ErrorMessage = "Test Error Message"; errors.Add(errorRecord); }
public String GetErrorMessage(Guid batchDetailsId, String user) { UploadErrorLogVMDC vmdc = uploadQueueManager.GetUploadErrorLog(user, user, appID, "", batchDetailsId.ToString()); if (vmdc != null && vmdc.UploadErrorLogItem != null) { return(vmdc.UploadErrorLogItem.ErrorMessage); } // TODO exception or null? return(null); }