csharpfritz / csharpfritz/CoreWiki
Comment POST action goes to page where the partial is embedded
Open
- Dominant language
- CSS
- Stars
- 438
- Forks
- 159
- PR merge metrics
- No merged PRs in 30d
Description
We're currently handling POST requests from the CreateComments component in the page where the component is embedded. e.x. https://github.com/csharpfritz/CoreWiki/blob/dev/CoreWiki/Pages/Details.cshtml.cs#L87-L108
Shouldn't we be handling the post of the comment creation in the Comment component? Or if not there, somewhere other than the embedded page?
Just trying to stick to the single responsibility principle.
Contributor guide
Assessment
This issue has not been assessed yet.