public RecordFileSystem GetRecord(RecordFileSystem record) { PatientData dataLayer = new PatientData(); RecordFileSystem result = new RecordFileSystem(); result = dataLayer.GetRecord(record); if (result != null) { if (result.FileContents != null) { result.FileContentsString = Convert.ToBase64String(result.FileContents); } } return(result); }