csharpfritz / csharpfritz/CoreWiki

Comment POST action goes to page where the partial is embedded

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.