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