---
title: "Discussion on \"Models and ViewData in SFRA: The Clean Data Flow\" | Hashnode"
description: "Discussion on \"Models and ViewData in SFRA: The Clean Data Flow\". B2C Commerce SFRA separates the platform API from the template via a model layer. Done right, the templates render cleanly and the controllers stay thin. Done wrong, templates query the API directly and the codebase fragments."
url: "https://hashnode.com/posts/models-and-viewdata-in-sfra-the-clean-data-flow/6a53c44e7370acb71858dadf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Models and ViewData in SFRA: The Clean Data Flow](https://sapotacorpvn.hashnode.dev/models-and-viewdata-in-sfra-the-clean-data-flow?utm_source=hashnode&utm_medium=feed)

B2C Commerce SFRA separates the platform API from the template via a model layer. Done right, the templates render cleanly and the controllers stay thin. Done wrong, templates query the API directly and the codebase fragments.

Jul 12 · 6 min read · sapotacorpvn.hashnode.dev  
Read the article

-   [#salesforce](https://hashnode.com/tag/salesforce)
-   [#b2c-commerce](https://hashnode.com/tag/b2c-commerce)
-   [#sfcc](https://hashnode.com/tag/sfcc)
-   [#sfra](https://hashnode.com/tag/sfra)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

[SapotaCorp](https://hashnode.com/@sapotacorpvn)

@sapotacorpvn · Hanoi, Vietnam

  
[View profile](https://hashnode.com/@sapotacorpvn)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
